For anyone facing the same issue, the quickest solution I’ve found is to clean up the URLs in Google Tag Manager.
Topic summary
Core Issue:
Shopify Pixel implementation in Customer Events is causing malformed URLs in Google Analytics 4 (GA4). URLs display with sandbox prefixes like /wpm@960565caw95f6f6d6pe10748f4mf4569064/custom/web-pixel-25755807@1/sandbox/modern/ before the actual page path.
Impact:
- Affects GA4 tracking accuracy and reporting
- Also impacts other analytics tools like Microsoft Clarity
- Not all URLs are affected; pattern unclear
- Issue reported starting around early November 2024
Proposed Solutions:
GTM Workaround (most discussed):
- Clean up URLs using Google Tag Manager filters
- Create 3 datalayer variables when implementing custom pixel
- Send main URL instead of sandbox URL through datalayer configuration
- Multiple community resources shared with step-by-step GTM approaches
Potential Causes:
- Custom pixel implementation in Shopify Customer Events
- Possibly related to third-party apps (PageFly landing page builder mentioned)
- Timing suggests recent Shopify platform changes
Status: No definitive fix identified; GTM filtering remains primary workaround rather than root cause solution.