Skip to content

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.

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.

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

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
Section titled “How to Create Tracking-Friendly Permalinks”

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

Follow these three steps to track 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.

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.

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.

After setting up your tracking-friendly permalinks:

  1. 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 holds attributes[__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.
  2. Place a test order. The Purchase shows in the Events Log of the Shopify integration.
  3. Check the Conversions Report. The Purchase shows with the original traffic source.

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?
A regular Shopify cart permalink sends visitors directly to a preloaded cart. A tracking-friendly permalink carries the Click ID of the visitor into the Shopify order. Add the 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?
Install the AnyTrack Tracking Tag on the external website, on the page that has the permalink. The Tracking Tag on that page adds the Click ID of the visitor to the link. The Shopify checkout cannot run the Tracking Tag.
What happens if I do not tag my permalinks?
Without the attribute or the manual parameter, the link does not carry the Click ID into the Shopify order. Shopify still processes the purchase. AnyTrack does not attribute the conversion to the correct traffic source, and the conversion shows as an error in your Events Log.
Which method do I use to tag a permalink?
Use the link attribute first. Add 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?
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 holds attributes[__atclid]= followed by a Click ID, not the text --CLICK-ID--.
Can I use a Shopify permalink in a Cross-Domain Tracking setup?
No. Cross-Domain Tracking does not support a Shopify permalink. Do not use a Shopify permalink in a Cross-Domain Tracking setup. A permalink is a different setup with one property. Install the Tracking Tag of the property on the page that has the permalink. Connect the Shopify integration to the same property. In a Cross-Domain Tracking setup, the links go to the store pages. See Advertorial and Shopify.