fbpx

Removing UTM Parameters from Internal Links

Internal links with UTM parameters can dilute your SEO efforts by creating duplicate content issues and splitting link equity. On Shopify, you can use the following steps to identify and remove UTM parameters from internal links:

  1. Go to your Shopify admin panel and navigate to Online Store > Themes.
  2. Click on Actions > Edit Code.
  3. In the Layout section, open the theme.liquid file.
  4. Add the following JavaScript code before the closing tag to strip UTM parameters from internal links:
    
          
        
  5. Save the changes and test your site to ensure UTM parameters are removed from internal links.

For WooCommerce, you can achieve the same by adding a similar script to your theme’s footer.php file:

  1. Go to your WordPress admin panel and navigate to Appearance > Theme Editor.
  2. In the Theme Files section, open the footer.php file.
  3. Add the following JavaScript code before the closing tag:
    
          
        
  4. Save the changes and test your site to ensure UTM parameters are removed from internal links.