How to prevent UTM value on a link from being lost when users switch among pages?

How to prevent UTM value on a link from being lost when users switch among pages?

exoneon
Tourist
23 0 2

Hi,

 

How can I ensure that UTM parameters, which are initially present when a user lands on our store via a UTM-tagged link, are preserved and retained as they navigate across different pages within our store? I'm looking for a solution that involves storing these UTM parameters in cookies or exploring other effective methods to maintain this data throughout the user's session.

 

Best Regards.

Reply 1 (1)

OneMobile
Shopify Partner
169 16 34

Hi @exoneon 

 

From what I know, you can set this up by using JavaScript to pass UTM parameters to all pages, or config your UTM settings in your Google Tag Manager.

 

Since the former requires lots of coding, I recommend you set your UTM parameters on Google Tag Manager. You can refer to the detailed instructions here.

 

I hope that this helps!

If you find my answer helpful, please hit the Like button or Mark as solution to show me some encouragement.
OneMobile: The #1 Mobile App Builder For Shopify Merchants
Pick ready-made themes & customize with drag-n-drop editor.