Skip to content

Shopify Advanced

Set up Shopify Advanced conversion tracking with AnyTrack to track purchases, cart events, and revenue. Connect your store data to ad platforms for accurate attribution and ROAS optimization.

📘 Note

Client-side tracking relates to website events that are tracked in the browser via the AnyTrack Tracking Tag. For example: AddToCart, or InitiateCheckout, or FormSubmit.

Client-side settings are located in the Property Settings > settings

When enabling client-side tracking you gain more control over the checkout data collection which lets you enrich your Tracking Tag via the server-side integration.

  • URL parameter: This allows AnyTrack to pass and read unique tracking parameters through your funnel.
  • Hidden parameters: AnyTrack passes a unique tracking parameter into the cart’s standard hidden fields. This option guarantees maximum tracking accuracy.

📘 Note

For best results, we recommend that both options be turned on.

  • AnyTrack uses client-side tracking events to capture product data.
  • AnyTrack deduplicates these events with the server-side events.
  • AnyTrack then sends the events through the Conversion API of your ads integrations.
AnyTrack and Shopify integration for client side tracking
AnyTrack default Client Side Tracking settings for Shopify

📘 Note

The Purchase event is disabled by default since server-side tracking is more reliable and provides richer data.

Tracking Not Working After Changing Shopify Theme

Section titled “Tracking Not Working After Changing Shopify Theme”

When you switch, change, or reinstall your Shopify theme, the theme code is rewritten, which removes the AnyTrack Tracking Tag. You can easily restore tracking by following these steps:

  1. From your AnyTrack dashboard, navigate to the Property Settings section for your Shopify store and select the ‘Tracking Script’ tab.

    Find the AnyTrack Tag in the Property Settings.
    Find the AnyTrack Tag in the Property Settings Section
  2. Click on the tag to copy it to your clipboard.

  3. From your Shopify dashboard, navigate to ‘Online Store’, click on the three dots button, and select ‘Edit Code’.

  4. In the ‘Layout’ folder, select the ‘theme.liquid’ file.

  5. Paste the AnyTrack Tracking Tag before the closing </head> tag.

  6. Save your changes.

Paste the AnyTrack Tag in the head of the theme.liquid file.

Use the AnyTrack Pixel Helper Chrome extension to verify if the AnyTrack Tracking Tag is now correctly detected on your Shopify store.

Shopify Advanced - Frequently Asked Questions

FAQ was last reviewed on 2026-06-10

What is the difference between client-side and server-side tracking?
Client-side tracking captures events in the browser via the AnyTrack Tracking Tag (for example, AddToCart and InitiateCheckout). Server-side tracking captures events via Shopify Webhooks and sends them directly to your ad platforms via Conversion API. AnyTrack uses both methods together and deduplicates the data automatically.
Why is the Purchase event disabled in client-side tracking by default?
The Purchase event is captured more reliably via Shopify Webhooks (server-side). Server-side tracking is not affected by browser extensions or JavaScript errors, making it the preferred method for purchase data. Enabling it client-side as well would require deduplication to avoid double-counting.
Do I need to reinstall the AnyTrack Tag after updating my Shopify theme?
Yes. When you switch or reinstall a Shopify theme, the theme.liquid file is rewritten and the AnyTrack Tracking Tag is removed. Follow the Reinstall the AnyTrack Tag steps above to restore tracking after any theme change.