Shopify Cart Permalinks
Track permalinks from an external website to your Shopify cart or checkout. Add the Shopify tracking group attribute to the link, so AnyTrack attributes the order to the ad click.
What Are Tracking-Friendly Permalinks?
Section titled “What Are Tracking-Friendly Permalinks?”Permalinks are direct links that take visitors straight to a specific page or action on your website. In this case, we’re talking about links that send people directly to a preloaded Shopify cart or checkout page.
Tracking-friendly permalinks are these same links, but modified to maintain proper visitor tracking when people click from external websites (like WordPress blogs, Funnelish pre-landers, or any landing page) to your Shopify store.
Why Use Tracking-Friendly Permalinks?
Section titled “Why Use Tracking-Friendly Permalinks?”The Problem You’re Solving
Section titled “The Problem You’re Solving”When visitors click a regular permalink from an external website to your Shopify cart, they bypass your store’s normal visitor flow. This creates several issues:
- Lost tracking data: Visitors are not recognized as tracked users
- Attribution errors: Conversion events are not properly attributed to your marketing efforts
- Incomplete analytics: Events show as errors in your Events Log
- Wasted ad spend: You cannot optimize campaigns without accurate conversion data
The Business Benefits
Section titled “The Business Benefits”Using tracking-friendly permalinks ensures you:
- Maintain accurate visitor tracking across all touchpoints
- Get complete conversion attribution for better ROI analysis
- Reduce tracking errors in your analytics
- Make data-driven decisions about your marketing campaigns
How to Create Tracking-Friendly Permalinks
Section titled “How to Create Tracking-Friendly Permalinks”Example Scenario
Section titled “Example Scenario”Let’s say you have a WordPress button that links directly to a preloaded Shopify cart: https://myshopify.com/cart/44568549196023:1
Without proper tracking setup, visitors who click this link are not recognized by your analytics.
Here’s a live example: Permalink to your product
Step-by-Step Solution
Section titled “Step-by-Step Solution”Follow these three steps to track your permalinks:
Step 1: Tag Your Permalinks
Section titled “Step 1: Tag Your Permalinks”Each link to a Shopify cart or checkout needs one of these two methods.
First method: the link attribute
Add the attribute data-tracking-group="shopify" to the permalink:
<a href="https://shop.example.com/cart/<variant_id>:1" data-tracking-group="shopify">Buy now</a>The Tracking Tag on the page reads the attribute. AutoTag adds the atclid parameter with the Click ID to the link. The link then looks like this:
https://shop.example.com/cart/<variant_id>:1?atclid=<Click ID>Second method: the manual parameter
Use this method if you cannot add the attribute to the link. Write the parameter in the link:
https://shop.example.com/cart/<variant_id>:1?attributes[__atclid]=--CLICK-ID--The Tracking Tag replaces --CLICK-ID-- with the Click ID.
What this does: The link carries the Click ID from your external website into the Shopify order. AnyTrack attributes the order to the original ad click and to its campaign.
Step 2: Install the AnyTrack Tag
Section titled “Step 2: Install the AnyTrack Tag”Make sure your external website (the one hosting these links) has the AnyTrack Tracking Tag installed.
What this does: The Tracking Tag reads the data-tracking-group="shopify" attribute and adds the Click ID to the link. With the manual parameter, the Tracking Tag replaces --CLICK-ID-- with the Click ID.
Step 3: Follow Shopify’s Best Practices
Section titled “Step 3: Follow Shopify’s Best Practices”Use Shopify’s recommended permalink structure instead of generic “Buy Now” buttons.
Why this matters: Shopify specifically advises against using their standard “Buy Now” button for external links.
Reference: Check Shopify’s official permalink documentation for detailed guidelines.
Testing Your Implementation
Section titled “Testing Your Implementation”After setting up your tracking-friendly permalinks:
- Hover over the link on your page. With the attribute, the URL holds
atclid=followed by a Click ID. With the manual parameter, the URL holdsattributes[__atclid]=followed by a Click ID, not the text--CLICK-ID--. If the parameter is missing, check the attribute on the link. If the text--CLICK-ID--is still there, the Tracking Tag does not load on the page. - Place a test order. The
Purchaseshows in the Events Log of the Shopify integration. - Check the Conversions Report. The
Purchaseshows with the original traffic source.
Results
Section titled “Results”Once you implement these changes:
- Visitors will be properly tracked from external websites to your Shopify store
- All conversion events will be correctly attributed to your marketing campaigns using AnyTrack’s server-side tracking
- Your Events Log will show fewer errors
- You will have complete data for optimizing your sales funnel
Technical note: The AnyTrack Tag handles the technical details of passing tracking information between platforms, so you don’t need to worry about the underlying mechanics.
Shopify Cart Permalinks - Frequently Asked Questions
FAQ was last reviewed on 2026-12-02
What is the difference between a regular permalink and a tracking-friendly permalink?
data-tracking-group="shopify" attribute to the link. If you cannot add the attribute, write the attributes[__atclid]=--CLICK-ID-- parameter in the link. This connects the purchase to the original traffic source.Does the AnyTrack Tag need to be on the external website or on Shopify?
What happens if I do not tag my permalinks?
Which method do I use to tag a permalink?
data-tracking-group="shopify" to the link, and AutoTag adds the atclid parameter with the Click ID. Use the manual parameter attributes[__atclid]=--CLICK-ID-- only if you cannot add the attribute to the link. Each link to a Shopify cart or checkout needs one of the two methods.How do I check that a permalink is tagged?
atclid= followed by a Click ID. With the manual parameter, the URL holds attributes[__atclid]= followed by a Click ID, not the text --CLICK-ID--.