Hello everyone,
I’m working on setting up web tracking for a client’s revamped website. Previously, the old site had tracking implemented in two places: a custom pixel and dataLayer files in Liquid. We are now integrating GTM into the setup.
Our goal is to transition away from custom tracking toward using Shopify’s native Google Analytics 4 (GA4) and YouTube app, as recommended. Since this automated tracking doesn’t allow modifications to include additional data, I have a couple of questions:
- How should I track user IDs? (Is “customer_id” the correct parameter in Shopify?)
- Should user IDs be tracked as a specific event, or as an additional parameter within existing events?
I’m finding Shopify’s documentation a bit confusing. Any guidance or best practices would be greatly appreciated.
Thanks in advance!