SlideRule Analytics

⌘K
Google Analytics 4 Shopify Setup
Automatic Setup
Remove Old Gtag Code
Remove Shopify Built-In GA4 Integration
Configure Google Analytics 4 Data Settings
Cookie Consent
Additional Details on Orders
Create a Google Analytics Account
Manual Configuration
Uninstall SlideRule Analytics
Why We Use Order ID as Transaction ID in Google Analytics 4
Add a `client_purchase` event
Data Action Listeners
Facebook Conversions API
Installation and Configuration
Verify your Integration (optional)
Remove the Built-in Facebook Pixel Shopify Integration (optional)
How to Test SlideRule's Facebook CAPI Integration Against Your Current Facebook Integration
Data Flow & Customer Data
Customer Data
Anonymized Data
How Server-Side Data Is Processed
Google Tag Manager
Installation and Configuration
Docs powered by
Archbee
Google Analytics 4 Shopify Set...

Cookie Consent

4min

SlideRule Analytics integrates with Shopify’s Customer Privacy API.

Shopify Customer Privacy API tells SlideRule whether or not visitors can be tracked for analytics purposes. The Customer Privacy API considers:

  1. If the visitor needs to provide consent based on their geographic area (in a GDPR country or not)
  2. If the visitor provided consent via a cookie banner
  3. Your shop's Customer privacy settings



Document image


Based on these criteria, the Customer Privacy API tells SlideRule whether or not a user can be tracked in GA4 with the analyticsProcessingAllowed parameter.

If the visitor can be tracked in GA4 by default, nothing changes.

If the visitor must provide consent, we start tracking them immediately after consent is granted.

If the visitor cannot be tracked in GA4, we stop firing all client-side events. We still fire all server-side events (begin checkout through purchase) but we do not associate those events with the visitor that generated the event. As a result, these purchases will have “Unassigned” attribution in GA4.

We add a “has_analytics_consent” parameter with value = 0 to server-side events when the user does give analytics consent. You can use this to easily see how many purchases come from visitors that did not provide consent.





Updated 31 Jul 2023
Did this page help you?
PREVIOUS
Enable Google Signals
NEXT
Additional Details on Orders
Docs powered by
Archbee
Docs powered by
Archbee