Shopify Pixel - Customer Events

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.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

This solution is really a workaround surely, not a solution?

Saying that, can you share how I should fix this in GTM? I have used a Shopify pixel to implement this and really struggling to get it working.

It keeps adding a load of junk in the middle of my URLs

e.g

**/wpm@960565caw95f6f6d6pe10748f4mf4569064/custom/web-pixel-25755807@1/sandbox/modern/**cart

I am also having the same issue with Microsoft Clarity. I want to try their new features but this junk is preventing me