Google Analytics 4: Video Walkthrough and Documentation
Looking to set up Google Analytics 4 (GA4)? Everything you need to know can be found in this article.
Video tutorial for setting up GA4:
Creating a GA4 Property
a. Go to analytics.google.com and create an account if you have not already
b. Click into Admin on the left menu and click Create Property
c. Name the property and select a timezone and default currency
d. Create your new GA4 Property
e. Choose No for “Migrating from Universal Analytics” as this is a new property
f. Choose the Web Platform Data Stream
g. Enter the URL of your websites homepage and ensure that Enhanced Measurement is enabled before creating the stream
Enhanced Measurement will automatically gather additional data on how your users are interacting with your website without any additional configuration on your part. Some of the data collected includes page views, scrolling, outbound clicks, form interactions and a lot more.
h. Installation of your google tag will be handled by Resmark for both the public page AND for any page that the Resmark Widget is installed on. However, If you have any additional pages on your website that will require tracking, then you will need to update those pages with your google tag and any analytics events that you may desire to track
i. Under the Web Streams Details copy the Measurement ID that is provided. This is the property that we will enter into Resmark under Website Tools > Analytics & Tracking
j. From the web stream, click “configure tag settings” and then click on your Google Tag, then toggle the ignore duplicate instances of on-page configuration to be off. Because of the single page application nature of Resmark this setting needs to be turned off in order to measure page views accurately. Page views will be the metric we use to setup our Sales Funnel report a little later
k. Set Data Retention to 14 Months - In the Property settings select the “Data Settings” drop down and then select “Data Retention”. Set Event Data Retention to 14 Months and save
Cross Domain Tracking - one additional piece of configuration that you may need to use is “Cross Domain Tracking” If you are using multiple domains during a user session then you will need to add those domains to your tag settings in order to prevent that cross domain traffic from being counted as an “Outbound Click”
a. Path: Data Streams > Stream Details > Configure Tag Settings > Configure your Domains
Path to page: Website Tools > Analytics & Tracking
Add your GA4 Measurement ID and Save
a. NOTE: Users can have both a UA and GA4 property at the same time while they transition to GA4. Both properties are completely independent in the code and can be used as such. The field for the UA tracking ID along with all the tracking code will be removed soon as Google will be deprecating this functionality on July 1
Validation - Once your Measurement ID has been saved to your account you will be able to validate that data is being sent to google by opening up the Google Analytics Dashboard and going to the realtime report. In a different tab go to your website and start to click around viewing items and adding products to your cart. The realtime report will begin showing data within a few minutes
The purpose of this report is to illustrate your users journey through the sales process and also to help identify areas that may need to be streamlined due to a high abandonment rate. Each step in the sales funnel reflects an action a user can take while purchasing a product from Starting the order all the way through Completing the order and getting to the confirmation page (Potentially 10 steps in total).
Example: https://analytics.google.com/analytics/web/?authuser=2#/analysis/p346728126/edit/wYriJ4gxT8KvMyjevPbaOA
Steps to setup Sales Funnel Report
a. Select the Explore option on the left side menu
b. Start a new exploration using the Funnel Exploration template
c. Remove any existing steps from the report
d. Click the “Edit” button for steps
e. Add new steps for each “Page View” event that you would like to track
First provide a name for the step that represents the user action being measured
Next add a condition to the step by selecting “Page / screen” from the dropdown and then selecting “Page title and screen class” for the Event scope
Then add a filter using the “Contains“ condition which looks for the Title of this steps page view event
Click “Add Step” and repeat this process for each step you want to record in your Sales Funnel
-- NOTE: Documentation on the Page View events that are currently supported can be obtained by contacting Resmark Support.
-- NOTE: While you do not need to include every page view event we offer, the order of the steps must be preserved or the funnel will not work properly
Now that we have added all of our steps we can apply our changes, add a Name to our report and exit
a. NOTE: There will be no data available for this or any other reports for about 24 hours. Once that time has passed and assuming your website has had visitors you should see data start to show up
b. Example: https://analytics.google.com/analytics/web/?authuser=2#/analysis/p346728126/edit/wYriJ4gxT8KvMyjevPbaOA
List of page view events that we are sending to GA
a. The Start Order page view is sent when a user clicks “Add to Cart”in either the widget or on the public page.
Title: “Start Order”
b. The Select Pickup (Optional) page view is sent when a user is prompted to enter a pickup. This is an optional item to record as some products will not have pickups to consider
Title: “Pickup”
c. The Select Quantity page view is sent when a user is prompted to enter a quantity for the product.
Title: “Quantity”
d. The Select Date & Time page view is sent when a user is prompted to select the date and time for the product.
Title: “Date”
e. The Agree to Policies (Optional) page view is sent when a user is prompted to agree to the policies for the product. This is an optional item to record as some products will not have pickups to consider
Title: “Policies”
f. The Agree to Notes (Optional) page view is sent when a user.
Title: “Notes”
g. The Add to Cart page view is sent when a user .
Title: “Add to Cart”
h. The Submit Payment page view is sent when a user .
Title: “Payment”
i. The Complete Order page view is sent when a user.
Title: “Complete”
j. The Confirmation page view is sent when a user .
Title: “Confirmation”
k. Additional Page Views
Material Request Confirmation
Title: “Material Request Confirmation”
Contact Request Confirmation
Title: “Contact Request Confirmation”
Add to Cart - User Interaction: Clicked Add to Cart from modal
a. Parameters: send_to, items[item_id, item_name, item_category, quantity]
Begin Checkout Event - User Interaction: Clicked Add to Cart from modal
a. Parameters: send_to, items[item_id, item_name, item_category, quantity]
Select Promotion Event - Enter a promo code
a. Parameters: send_to, promotion_name, items[item_id, item_name, item_category, discount]
Add Payment Info Event - User Interaction: Submit payment information
a. Parameters: send_to
Purchase Event - User Interaction: Payment made successfully
a. Parameters: send_to, transaction_id, affiliation, value, tax, currency, items[item_id, item_name, price, quantity, item_category]
Remove from cart Event - User Interaction: Clicked “Remove from Cart”
a. Parameters: send_to, items[item_id, item_name]
Remove from cart Event - User Interaction: Clicked “Start Over”
a. Parameters: send_to, value, items[item_id, item_name]
Google Analytics 4 Beginners Tutorial: Google Analytics 4 Tutorial for Beginners (2023)
Video tutorial for setting up GA4:
Creating and configuring a GA4 property
Creating a GA4 Property
a. Go to analytics.google.com and create an account if you have not already
b. Click into Admin on the left menu and click Create Property
c. Name the property and select a timezone and default currency
d. Create your new GA4 Property
e. Choose No for “Migrating from Universal Analytics” as this is a new property
f. Choose the Web Platform Data Stream
g. Enter the URL of your websites homepage and ensure that Enhanced Measurement is enabled before creating the stream
Enhanced Measurement will automatically gather additional data on how your users are interacting with your website without any additional configuration on your part. Some of the data collected includes page views, scrolling, outbound clicks, form interactions and a lot more.
h. Installation of your google tag will be handled by Resmark for both the public page AND for any page that the Resmark Widget is installed on. However, If you have any additional pages on your website that will require tracking, then you will need to update those pages with your google tag and any analytics events that you may desire to track
i. Under the Web Streams Details copy the Measurement ID that is provided. This is the property that we will enter into Resmark under Website Tools > Analytics & Tracking
j. From the web stream, click “configure tag settings” and then click on your Google Tag, then toggle the ignore duplicate instances of on-page configuration to be off. Because of the single page application nature of Resmark this setting needs to be turned off in order to measure page views accurately. Page views will be the metric we use to setup our Sales Funnel report a little later
k. Set Data Retention to 14 Months - In the Property settings select the “Data Settings” drop down and then select “Data Retention”. Set Event Data Retention to 14 Months and save
Cross Domain Tracking - one additional piece of configuration that you may need to use is “Cross Domain Tracking” If you are using multiple domains during a user session then you will need to add those domains to your tag settings in order to prevent that cross domain traffic from being counted as an “Outbound Click”
a. Path: Data Streams > Stream Details > Configure Tag Settings > Configure your Domains
Adding Measurement ID to Resmark and Testing
Path to page: Website Tools > Analytics & Tracking
Add your GA4 Measurement ID and Save
a. NOTE: Users can have both a UA and GA4 property at the same time while they transition to GA4. Both properties are completely independent in the code and can be used as such. The field for the UA tracking ID along with all the tracking code will be removed soon as Google will be deprecating this functionality on July 1
Validation - Once your Measurement ID has been saved to your account you will be able to validate that data is being sent to google by opening up the Google Analytics Dashboard and going to the realtime report. In a different tab go to your website and start to click around viewing items and adding products to your cart. The realtime report will begin showing data within a few minutes
The Sales Funnel
The purpose of this report is to illustrate your users journey through the sales process and also to help identify areas that may need to be streamlined due to a high abandonment rate. Each step in the sales funnel reflects an action a user can take while purchasing a product from Starting the order all the way through Completing the order and getting to the confirmation page (Potentially 10 steps in total).
Example: https://analytics.google.com/analytics/web/?authuser=2#/analysis/p346728126/edit/wYriJ4gxT8KvMyjevPbaOA
Steps to setup Sales Funnel Report
a. Select the Explore option on the left side menu
b. Start a new exploration using the Funnel Exploration template
c. Remove any existing steps from the report
d. Click the “Edit” button for steps
e. Add new steps for each “Page View” event that you would like to track
First provide a name for the step that represents the user action being measured
Next add a condition to the step by selecting “Page / screen” from the dropdown and then selecting “Page title and screen class” for the Event scope
Then add a filter using the “Contains“ condition which looks for the Title of this steps page view event
Click “Add Step” and repeat this process for each step you want to record in your Sales Funnel
-- NOTE: Documentation on the Page View events that are currently supported can be obtained by contacting Resmark Support.
-- NOTE: While you do not need to include every page view event we offer, the order of the steps must be preserved or the funnel will not work properly
Now that we have added all of our steps we can apply our changes, add a Name to our report and exit
a. NOTE: There will be no data available for this or any other reports for about 24 hours. Once that time has passed and assuming your website has had visitors you should see data start to show up
b. Example: https://analytics.google.com/analytics/web/?authuser=2#/analysis/p346728126/edit/wYriJ4gxT8KvMyjevPbaOA
List of page view events that we are sending to GA
a. The Start Order page view is sent when a user clicks “Add to Cart”in either the widget or on the public page.
Title: “Start Order”
b. The Select Pickup (Optional) page view is sent when a user is prompted to enter a pickup. This is an optional item to record as some products will not have pickups to consider
Title: “Pickup”
c. The Select Quantity page view is sent when a user is prompted to enter a quantity for the product.
Title: “Quantity”
d. The Select Date & Time page view is sent when a user is prompted to select the date and time for the product.
Title: “Date”
e. The Agree to Policies (Optional) page view is sent when a user is prompted to agree to the policies for the product. This is an optional item to record as some products will not have pickups to consider
Title: “Policies”
f. The Agree to Notes (Optional) page view is sent when a user.
Title: “Notes”
g. The Add to Cart page view is sent when a user .
Title: “Add to Cart”
h. The Submit Payment page view is sent when a user .
Title: “Payment”
i. The Complete Order page view is sent when a user.
Title: “Complete”
j. The Confirmation page view is sent when a user .
Title: “Confirmation”
k. Additional Page Views
Material Request Confirmation
Title: “Material Request Confirmation”
Contact Request Confirmation
Title: “Contact Request Confirmation”
GA4 Ecommerce Events Documentation
Add to Cart - User Interaction: Clicked Add to Cart from modal
a. Parameters: send_to, items[item_id, item_name, item_category, quantity]
Begin Checkout Event - User Interaction: Clicked Add to Cart from modal
a. Parameters: send_to, items[item_id, item_name, item_category, quantity]
Select Promotion Event - Enter a promo code
a. Parameters: send_to, promotion_name, items[item_id, item_name, item_category, discount]
Add Payment Info Event - User Interaction: Submit payment information
a. Parameters: send_to
Purchase Event - User Interaction: Payment made successfully
a. Parameters: send_to, transaction_id, affiliation, value, tax, currency, items[item_id, item_name, price, quantity, item_category]
Remove from cart Event - User Interaction: Clicked “Remove from Cart”
a. Parameters: send_to, items[item_id, item_name]
Remove from cart Event - User Interaction: Clicked “Start Over”
a. Parameters: send_to, value, items[item_id, item_name]
Additional Resources to learn more about GA4
Google Analytics 4 Beginners Tutorial: Google Analytics 4 Tutorial for Beginners (2023)
Updated on: 03/28/2024
Thank you!