Shopify Custom Pixel is incompatible with Google Ads conversions (bug report)

Topic summary

A critical incompatibility exists between Shopify’s Custom Web Pixels feature and Google Ads conversion tracking. The gtag.js script loads successfully within Custom Pixels but fails to export conversions, while the same code works properly when implemented directly in theme files.

Root Cause & Resolution:

  • Initial issue stemmed from cross-domain restrictions in the Custom Pixel sandbox environment preventing gtag.js from loading via googletagmanager.com
  • Google shipped a fix addressing the Ads tag’s inability to correctly detect sandboxed iframes
  • Conversions are now being captured successfully for most users

Ongoing Issue:
A new error has emerged: Failed to execute 'joinAdInterestGroup' on 'Navigator' from td.doubleclick.net. One working solution involves disabling interest groups:

gtag('config', 'AW-1234', { allow_interest_groups: false });

This requires separate, property-specific config calls rather than common configuration.

Alternative Approaches:

  • Using postMessage to send data from Custom Pixel to main window
  • Loading GTM via Custom Pixel with “Google Ads Conversion Tracking” tags
  • Creating custom dataLayer events that push conversion data to GTM
  • Temporarily reverting to Additional Scripts implementation

The discussion includes test stores and screenshots demonstrating the problem and various workarounds.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

We’re still seeing the following error in the Google Ads custom web pixel we use for conversion tracking.

Uncaught (in promise) DOMException: Failed to execute ‘joinAdInterestGroup’ on ‘Navigator’: May only joinAdInterestGroup from an https origin.
at https://td.doubleclick.net

Unfortunately, we have not yet found a solution to correct this problem.
Has anyone found a solution ?

2 Likes