AuditTags

Complete Shopify GA4 & GTM Audit Guide

The definitive technical guide to auditing Google Analytics 4 and Google Tag Manager on Shopify stores. 2000+ words covering every check you need to perform.

15 min readUpdated January 2025

A proper Tracking Health Check is the foundation of trustworthy Shopify analytics. Without regular audits, you're making business decisions based on corrupted data—overstating revenue, misattributing campaigns, and missing critical customer insights.

This guide walks through every technical check needed for a comprehensive audit, from duplicate tracking detection to Consent Mode v2 compliance. Whether you're a Shopify store owner, developer, or agency partner, follow these steps to ensure data quality.

1. Pre-Audit Preparation

Gather Credentials & Access

Before starting, ensure you have:

  • GA4 Admin access - Editor or Administrator role on the GA4 property
  • GTM Publish access - Ability to review container configuration
  • Shopify Admin access - For theme code inspection
  • Developer tools - Chrome DevTools, Google Tag Assistant, GA4 DebugView

Document Current Setup

Create a baseline inventory:

  • GA4 Measurement ID (format: G-XXXXXXXXXX)
  • GTM Container ID (format: GTM-XXXXXXX)
  • List of installed Shopify apps that might affect tracking
  • Theme name and version
  • Consent management platform (if any)

Skip the manual audit?

AuditTags automates this entire checklist in under 2 minutes. Try a free scan →

2. GA4 Configuration Audit

Check Data Stream Settings

In GA4 Admin → Data Streams → Web, verify:

  • Enhanced measurement is enabled (automatic scroll tracking, outbound clicks, site search)
  • Correct domain listed (e.g., yourstore.myshopify.com)
  • Cross-domain tracking configured if using custom domain + Shopify checkout
  • Google Signals enabled for remarketing and demographics (if compliant with privacy policy)

Verify Event Configuration

Go to GA4 Configure → Events:

  • Core ecommerce events should appear: purchase, add_to_cart, begin_checkout
  • No "invalid" flags next to events (indicates malformed parameters)
  • Conversion events are marked (purchase, lead submissions)

Review Data Filters

Admin → Data Settings → Data Filters:

  • ✅ Internal traffic filter is active (excludes your office IP)
  • ✅ Developer traffic filter excludes staging/test domains
  • ⚠️ Be careful not to accidentally filter out all traffic!

3. Google Tag Manager Audit

Container Installation Check

Open your Shopify theme code (theme.liquid) and verify:

  • GTM container snippet is in the <head> section (for optimal loading)
  • No duplicate GTM containers (search for GTM- and count instances—should be exactly 1)
  • No hardcoded GA4 tags competing with GTM (search for your G-ID)

Tag Configuration Review

In GTM workspace, audit each tag:

GA4 Configuration Tag

  • Measurement ID is correct
  • Fires on "All Pages" trigger
  • Consent Mode settings enabled (if using CMP)
  • Cross-domain tracking configured (if applicable)

Ecommerce Event Tags

  • Event names match GA4 recommendations (lowercase with underscores)
  • Item parameters include item_id, item_name, price, quantity
  • Currency parameter is set (e.g., USD)
  • Transaction ID is captured for purchase events

Trigger Validation

Check that triggers are not overfiring:

  • Page view triggers should not fire twice per page
  • Click triggers have appropriate conditions (not firing on every click)
  • Form submission triggers use proper form selectors

4. Tracking Code Audit

Duplicate Tracking Detection

This is the #1 cause of inflated metrics. Use Chrome DevTools:

  1. Open your store in Chrome
  2. Press F12 → Network tab
  3. Filter by "collect"
  4. Reload the page
  5. Count requests to collect?v=2&...tid=G-XXXXXXXXXX

Expected: 1 request per pageview. If you see 2+: You have duplicate tracking.

Content Security Policy Conflicts

Some Shopify themes have restrictive CSP headers that block GTM/GA4:

  • Check DevTools Console for CSP errors like Refused to load script
  • Verify *.googletagmanager.com and *.google-analytics.com are whitelisted
  • If using custom CSP, add to script-src directive

Automated duplicate detection

AuditTags automatically detects duplicate GA4 IDs, GTM conflicts, and CSP issues. Start for $19 →

5. Ecommerce Events Audit

Complete Event Checklist

Verify these 11 GA4 ecommerce events fire correctly:

EventWhen to FireStatus
view_item_listCollection/search pagesUsually missing
select_itemClick product in listUsually missing
view_itemProduct page viewAuto-tracked
add_to_cartAdd to cart clickAuto-tracked
view_cartCart page viewUsually missing
begin_checkoutCheckout page loadAuto-tracked
purchaseThank you pageAuto-tracked

Test with DebugView

Enable GA4 DebugView for real-time event validation:

  1. Install Google Analytics Debugger extension
  2. Go to GA4 → Admin → DebugView
  3. In another browser tab, navigate your store as a customer
  4. Watch DebugView for each event firing with correct parameters

6. Consent Mode & Privacy Audit

Consent Mode v2 Compliance

If you serve European customers, Consent Mode v2 is mandatory:

  • ✅ Default consent state is "denied" before user interaction
  • ✅ Consent banner appears before GA4 tracking starts
  • ✅ All four consent types configured: analytics_storage, ad_storage, ad_user_data, ad_personalization
  • ✅ GA4 sends gcs parameter indicating consent status

Verify with Network Tab

Before clicking consent banner, check GA4 requests for:

&gcs=G100  // Indicates Consent Mode active, all denied

After accepting cookies, verify:

&gcs=G111  // All consent types granted

7. Data Quality Validation

Sanity Check GA4 Reports

Compare GA4 data against known baselines:

  • Traffic volume: Should roughly match Shopify Admin traffic
  • Revenue: GA4 transaction total should match Shopify sales reports (±5%)
  • Bounce rate: Unusually low (<20%) suggests duplicate tracking
  • Session duration: Abnormally high suggests duplicate events

Check for Data Gaps

Look for missing data in GA4 reports:

  • No traffic from certain pages (indicates tracking not installed)
  • Missing checkout funnel data (cross-domain tracking broken)
  • Zero mobile traffic (suggests mobile theme excludes tracking)

8. Performance & Security Audit

Page Load Impact

GA4/GTM should not slow down your store significantly:

  • Use Lighthouse or PageSpeed Insights to measure impact
  • GTM should load asynchronously (not block page rendering)
  • Aim for <100ms added load time from tracking

Security Best Practices

  • Never send PII (passwords, credit cards) in event parameters
  • Redact email addresses from URL parameters
  • Use IP anonymization if required by privacy policy

9. Reporting & Documentation

Create an Health Check Report

Document findings in a shareable format:

  • Issues Found: List each problem with severity (critical/medium/low)
  • Screenshots: Include DevTools evidence
  • Fix Recommendations: Specific steps to resolve
  • Priority: Order fixes by impact (fix duplicate tracking first!)

Generate PDF audit reports automatically

AuditTags provides shareable PDF reports with findings, evidence, and fix instructions. View sample report →

10. Ongoing Monitoring

Schedule Regular Audits

Don't audit once and forget—tracking breaks over time:

  • Quarterly audits for active stores
  • After every theme update or major Shopify change
  • When installing new apps that might interfere with tracking
  • Before major campaigns (Black Friday, product launches)

Set Up Monitoring Alerts

Use GA4 custom alerts or third-party tools:

  • Alert when traffic drops by >20% unexpectedly
  • Alert when ecommerce conversion rate drops
  • Alert when critical events stop firing

Or use AuditTags Tracking Integrity Monitor ($49/mo): Weekly automated scans with email + Slack alerts when tracking breaks.

Conclusion

A comprehensive Tracking Health Check involves 10 major checkpoints, from duplicate tracking detection to Consent Mode compliance. Manual audits take 3-5 hours for an experienced analyst—longer if you're learning as you go.

This guide gives you the framework to audit any Shopify store properly. But if you want to skip the manual work, AuditTags automates this entire checklist in under 2 minutes.

Related Resources