Marketo Munchkin Tracking Issue - New Token ID Generated on Page Reload in Headless CMS
Hi there,
I'm seeking assistance with a Marketo Munchkin tracking implementation issue. We're implementing Marketo tracking in our new headless CMS environment:
Environment:
- Headless CMS built in Optimizely
- Next.js framework
- Marketo Munchkin implementation (via GTM and hardcoded - both tested)
Issue: We're experiencing problems with the _mkto_trk cookie. Every page reload or form submit is being tracked as a new visitor due to an unique token ID. Resulting in an incorrectly tracking for returning visitors and form submitters by a refresh of the _mkto_trk cookie. As the website is Headless we're aware that every pageview needs to be tracked separately via a HistoryChange event, so navigation through the website works as intended.
Could you please advise on the correct implementation approach for our headless architecture or suggest potential solutions to maintain consistent visitor tracking?
Thank you for your help.