GA4 & Consent Mode Version 2
Google Analytics 4 (GA4) is Google's latest iteration of its 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 cookies 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).
ShopWired does not provide built-in support for implementing GA4 using Google Tag Manager. If you want to use Google Tag Manager, you'll need to implement it directly in your website's theme files - contact support for assistance
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 GA4 section. Enter your GA Tag into the GA tag setting.
Use the settings available in the what events do you want to track section and select the types of GA4 events you want to track on your website (and therefore send to Google Analytics).
HINT: GA4 automatically tracks page views each time a page on your website is visited, the page_view event is therefore always enabled
Setting | GA4 Event | Definition / Scenario | Part of GA4 Purchase Journey? |
---|---|---|---|
N/A | 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 quick view |
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 express payment method (like PayPal Express) When a visitor has clicked a link in a quote |
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 click & collect 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
To require visitors to consent to cookies before GA4 tracks their visit to your website, navigate to Your account > GDPR and select Google Analytics tag for the require cookie consent before setting the following scripts setting.
When activated, GA4 will not activate on any of your website's pages before the visitor accepts cookies.
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 visitor to your website, you can use Google Consent Mode Version 2 to send cookieless pings 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 sent to GA4.
To activate Google Consent Mode Version 2 use the setting provided in the GA4 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 personalized advertising |
analytics_storage | Enables storage (such as cookies) related to analytics e.g. visit duration |