how to remove extra characters from homepage URL?

Solved

how to remove extra characters from homepage URL?

nmyw
Visitor
3 0 2

Hi guys! 

 

For some reason there are added characters to my homepage / domain.. I want to remove them but don't know where to start or how it happened in the first place. Can anyone help? 

 

When go through google search to my homepage the url says 

https://knitinprogress.com/?srsltid=AfmBOoqai5RwXQuUzWrUQa-gMRCos-4VBKANhVll-iA9zT8wjq7Nk1r-

 

How can I change back to my domain which is www.knitinprogress.com ? 

 

Thanks!! 

Accepted Solution (1)

Promer-Alena
Shopify Partner
264 27 72

This is an accepted solution.

The ?srsltid=AfmBO... part in your URL is a tracking parameter added by Google or other referral sources. It doesn’t actually change your website’s real domain—your site is still **www.knitinprogress.com** but it appears in the URL when users click through from certain search results, ads, or external sources.

Hope this can help you:

You can force Shopify to remove tracking parameters when users land on your site:

  • Go to Online Store > Themes > Actions > Edit Code
  • Open theme.liquid
  • Add this snippet inside the <head> tag:

    <script>
    if (window.location.search.length > 0) {
    window.history.replaceState({}, document.title, window.location.pathname);
    }
    </script>

    And if you’re using Google Ads, tracking parameters might be added for performance tracking. You can disable auto-tagging in Google Ads settings (but only if you don’t need tracking data).

    If your Google search results keep showing the messy URL, try requesting re-indexing in Google Search Console.

- Was my answer helpful? Please hit Like or Mark it as solution!
- Promer AI: AI-powered CRO Agents audit stores, uncover conversion blockers & bulk-generate high-impact content.
- Try it FREE today!

View solution in original post

Replies 3 (3)

DaRam99
Shopify Partner
1 0 1

I don't believe that is something you cant change. 

Here's what it means, srsltid is likely a tracking parameter, possibly generated by Google Search or another service to track the referral source. The long alphanumeric string is a unique identifier that helps identify a specific search session or click event.

It is usually harmless but primarily used for tracking and analytics.

Promer-Alena
Shopify Partner
264 27 72

This is an accepted solution.

The ?srsltid=AfmBO... part in your URL is a tracking parameter added by Google or other referral sources. It doesn’t actually change your website’s real domain—your site is still **www.knitinprogress.com** but it appears in the URL when users click through from certain search results, ads, or external sources.

Hope this can help you:

You can force Shopify to remove tracking parameters when users land on your site:

  • Go to Online Store > Themes > Actions > Edit Code
  • Open theme.liquid
  • Add this snippet inside the <head> tag:

    <script>
    if (window.location.search.length > 0) {
    window.history.replaceState({}, document.title, window.location.pathname);
    }
    </script>

    And if you’re using Google Ads, tracking parameters might be added for performance tracking. You can disable auto-tagging in Google Ads settings (but only if you don’t need tracking data).

    If your Google search results keep showing the messy URL, try requesting re-indexing in Google Search Console.

- Was my answer helpful? Please hit Like or Mark it as solution!
- Promer AI: AI-powered CRO Agents audit stores, uncover conversion blockers & bulk-generate high-impact content.
- Try it FREE today!

Dan-From-Ryviu
Shopify Partner
11931 2340 2515

Hi @nmyw 

This is the tracking ID and is created automatically when you open the store URL from outside 

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.