GA4 & Consent Mode Version 2
Google Analytics 4 (GA4) is the latest iteration of Google's visitor analytics and tracking platform. Whilst ShopWired provides some reporting features to track visitors to your website, we strongly recommend that you implement GA4 on your ShopWired account.
Google Consent Mode Version 2 allows your website to adjust the behaviour of Google Analytics tags on your website based on whether a visitor has granted your website consent to place on their browser. It enables your website to still track some aspects of visitor behaviour, whilst respecting visitor preferences. Read more information about Google Consent Mode Version 2.
ShopWired has built-in support for both GA4 and Google Consent Mode Version 2 (Advanced Consent Mode).
Activating GA4
Activating GA4
To activate GA4 on your ShopWired website, you'll need to enter your GA Tag into your ShopWired account. You can get your GA Tag from your Google Analytics account, and it will look something like G-TPF0GE71VS
. Find out how to get your GA Tag.
Navigate to Settings > Visitor monitoring and locate the Google Analytics 4 section. Enter your GA Tag into the Google Tag ID setting.
Use the settings available in the Select the events to track section to select the types of you want to track on your website (and therefore send to Google Analytics).
Setting | GA4 Event | Definition / Scenario | Part of GA4 Purchase Journey? |
---|---|---|---|
page_view | - When a visitor views any page on your website | No | |
Login | login | - When a visitor logs into an account - When a visitor logs into an account during checkout |
Yes |
Sign Up | sign_up | - When a visitor creates an account - When a visitor applies for a trade account |
No |
Search | search | - When a visitor uses the product search | No |
View Item List | view_item_list | - When a visitor views a category page - When a visitor views a brand page - When a visitor views the all products page (a parent category showing all products belonging to its subcategories) - When a visitor uses the product search - When a visitor views their wishlist |
No |
View Item | view_item | - When a visitor views a product - When a visitor uses |
Yes |
Add To Wishlist | add_to_wishlist | - When a visitor adds a product to the wishlist - When a visitor moves a product from the basket to the wishlist |
No |
Add To Cart | add_to_cart | - When a visitor adds a product to the basket | Yes |
Remove From Cart | remove_from_cart | - When a visitor removes a product from the basket - When a visitor moves a product from the basket to the wishlist |
No |
View Cart | view_cart | - When a visitor views the shopping basket | Yes |
Begin Checkout | begin_checkout | - When a visitor selects 'proceed to checkout' on the shopping basket page - When a visitor selects an - When a visitor has clicked a link in a |
Yes |
Add Shipping Information | add_shipping_info | - When a guest visitor enters their shipping address - When a visitor creates an account and enters their shipping address - When a visitor logs into an account and selects a shipping address - When a visitor logs into an account, creates and selects a new shipping address - When a visitor selects a location - When a visitor's express checkout payment is successful - When a visitor's express checkout payment is unsuccessful - When a visitor has clicked a link in a quote |
Yes |
Add Payment Information | add_payment_info | - When a visitor's payment is not successful - When a visitor's payment is successful |
Yes |
Purchase | purchase | - When a visitor successfully completes payment | Yes |
Cookie consent
Cookie consent
To require visitors to consent to cookies before GA4 tracks their visit to your website:
- Navigate to Website settings > GDPR
- Select Google Analytics tag for the
require visitor consent to cookies before running the contents of the following scripts on their browser
setting
When activated, GA4 will not run on any of your website's pages before the visitor accepts cookies.
Google Consent Mode Version 2
Google Consent Mode Version 2
If you have set your website's cookie consent widget to require a visitor's consent before GA4 tracks their visit to your website, you can use to send to GA4, sending some data to GA4 without the use of cookies, before the visitor grants consent. Once the visitor grants cookie consent, full data is subsequently sent to GA4.
To activate Google Consent Mode Version 2, use the Enable Google Consent Mode V2 setting in the Google Analytics 4 section of the Visitor monitoring page.
Read more about Google Consent Mode Version 2. ShopWired uses Advanced Consent Mode to set default consent states.
Once a visitor accepts cookies on your website, ShopWired updates their visitor preferences (sending them to GA4) granting consent for the following types:
Consent Type | Description |
---|---|
ad_storage | Enables storage (such as cookies) related to advertising |
ad_user_data | Sets consent for sending user data related to advertising to Google |
ad_personalization | Sets consent for personalised advertising |
analytics_storage | Enables storage (such as cookies) related to analytics e.g. visit duration |