Skip to main content
Solved

Site URL with Sort By filter overwritten by UTM


Forum|alt.badge.img+2

Hi all,

I have a clickthrough link that leads to the Shopify store’s /collections/all?sort_by=date-new-to-old page

This link works fine. However after receiving a test email, the url parts after ? get overwritten by what I’m assuming is everything for UTM tracking. Turning off UTM tracking for this email doesn’t stop this behavior either.

Is there a way I can ensure the link goes to the page with the correct Sort By filter?

Best answer by Byrne C

Hey ​@ahinboxstars14,

Thanks for the question! I’m thinking that the most likely cause of this issue is actually the _kx parameter we add on to emails, which is responsible for email to website tracking. This is the likely reason, because you mention that you’re still seeing this issue even with UTM tracking turned off.

The _kx parameter (shown below in the URL) is used for Klaviyo web tracking. The encrypted value you see after the kx= is decoded by our Active on Site snippet, which allows site visitors to be tracked. The setting that applies to this Klaviyo Web tracking is not within the UTM Settings, but is within your general Email Settings. 

You can’t disable this for individual emails or links, but you can disable it across your account by visiting this page https://www.klaviyo.com/settings/email/attribution and unchecking the “Email to website tracking” setting. I’d only recommend this if you’re okay with not having email to website tracking live for this campaign, in favor of that link directing people who click to the correct page on your site. If so, you can disable it, send the campaign, and then enable it again.

Let me know if I can answer any additional questions, or if you have other questions/concerns!

-Byrne

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Byrne C
Community Manager
Forum|alt.badge.img+14
  • Community Manager
  • 116 replies
  • Answer
  • March 10, 2025

Hey ​@ahinboxstars14,

Thanks for the question! I’m thinking that the most likely cause of this issue is actually the _kx parameter we add on to emails, which is responsible for email to website tracking. This is the likely reason, because you mention that you’re still seeing this issue even with UTM tracking turned off.

The _kx parameter (shown below in the URL) is used for Klaviyo web tracking. The encrypted value you see after the kx= is decoded by our Active on Site snippet, which allows site visitors to be tracked. The setting that applies to this Klaviyo Web tracking is not within the UTM Settings, but is within your general Email Settings. 

You can’t disable this for individual emails or links, but you can disable it across your account by visiting this page https://www.klaviyo.com/settings/email/attribution and unchecking the “Email to website tracking” setting. I’d only recommend this if you’re okay with not having email to website tracking live for this campaign, in favor of that link directing people who click to the correct page on your site. If so, you can disable it, send the campaign, and then enable it again.

Let me know if I can answer any additional questions, or if you have other questions/concerns!

-Byrne


ross_hopkins
Problem Solver I
Forum|alt.badge.img+6
  • 2025 Champion
  • 14 replies
  • March 11, 2025

It’s been a while since I worked with Shopify, but could you potentially solve this by using a redirect?

Setup a redirect from https://shopifystoredomain.com/campaign-name/ to https://shopifystoredomain.com/collections/all?sort_by=all&utm_source=….etc

Could be something to test. I’m a little unsure if the kx parameter would be “seen” long enough to be tracked. 

Secondly, I’m a little suspicious of the %5B and %5D encoding in the URL example you’ve shared. That translates to [ and ]. I wouldn’t use those characters in utm parameters because they encode in that way. Was that intentional?