Learn business growth with Google Analytics 4 Forums Google Analytics 4 Setting Up Google Analytics Conversion for Targeted Page Views in a Session

  • Setting Up Google Analytics Conversion for Targeted Page Views in a Session

    Posted by Jayden on 16 September 2022 at 3:01 pm

    Hey, I’m trying to put together an event or a goal for a session that includes viewing the home (/), recipes (/recipes/) and find us (/find-us/) pages. Can this be done? If so, can you hook me up with the Universal and GA4 scripts I can stick in the site footer?

    William replied 11 months ago 3 Members · 2 Replies
  • 2 Replies
  • Addison

    Member
    26 February 2023 at 6:13 am

    Yes, this can be accomplished through Google Analytics. For both Universal Analytics and GA4, Google provides a JavaScript code, known as the tracking code, which collects data about your site.

    For Universal Analytics, the tracking code could be customized for specific events. However, instead of directly manipulating the code, custom events are typically created within the Google Analytics (GA) interface. You can set up new goals via the “Admin” section under “Goals” and then set the type as “Destination”. You would then specify the URLs of the pages which would count as an achievement of the goal.

    In GA4, Google has moved towards an event-based model. The global site tag (gtag.js) that GA4 uses allows you to send event data to Google Analytics. Event tracking can be configured directly in the interface without requiring modification of the tracking code on your website. Both these scripts (Universal and GA4) should be placed in the footer of your website pages to track all necessary data for a session.

    However, as you are trying to setup an event or a goal that includes viewing of multiple pages, it is recommended to make use of ‘Funnel Analysis’ in GA4 as it allows for a sequence of actions a user took, while goals in Universal Analytics work better for single action targets.

    Please note that getting this setup right may require more than just a simple copy-paste of the tracking code. To fulfil your specific need, understanding the setup, configuration, and interpretation of these data collection tools is essential. It’s advisable to consult with a Google Analytics certified professional or a similar expert for proper setup and utilization of these tools.

  • William

    Member
    29 April 2023 at 10:14 pm

    Yes, it is definitely possible to track user interactions with specific pages on your website including your home, recipes, and find us pages. This is done using Google Analytics, which has two versions: Universal Analytics and Google Analytics 4 (GA4).

    For Universal Analytics, the tracking code is usually provided when you create your Google Analytics account. The script is then placed into your website’s footer, typically within the tags of all the pages you want to track.

    For Google Analytics 4 (GA4), it was designed with more advanced tracking capabilities. This version provides an interface to track user interaction without the necessity to inject a lot of custom code into your pages. Once you set up your GA4 property, you will also have a script that needs to be placed in your website’s header or footer.

    Remember, you usually need to set up specific events in your Google Analytics account like page views, scrolls, or clicks to start tracking them. It should also be noted that setting up events for goals might be different between the two versions of Google Analytics. It might be best to consult with a web analyst or a Google Analytics specialist to ensure correct setup.

Log in to reply.