UTM tracking cross domain between Marketo and WordPress pages
Hi all,
I've implemented the following cookie tracking in this article: https://nation.marketo.com/t5/product-documents/utm-tracking-marketo-part-deux/ta-p/250332
I'm using these hidden cookie fields to track UTM parameters for our Google Ads to measure which search terms and ad groups are performing for my SEM agency. This has been working flawlessly for me when directing individuals directly on my Marketo LP's.
Here's the issue, I now have the desire to push ads directly to our WordPress pages. However when an end-user lands on these WordPress pages, clicks an anchor tag or clicks a CTA button switching to our subdomain hosted Marketo pages all the UTM's clear off the URL string. This causes the converted lead record to loose all this valuable hidden field meta data I'm trying to keep on form submit conversion. Is there a JS solution that would maintain the cookies for us?