Skip to main content

Event snippet detected on your homepage

What the Google Ads event snippet error means and how to remove it from your Shopify theme.

Written by Pico
Updated today

What's happening

During your Google Ads connection check, we detected a Google Ads event snippet installed directly on your store. This snippet is typically added to the theme.liquid file in your Shopify theme, and it fires a conversion event on every page load.

The problem is that it's pointed at your purchase conversion action. Every time someone visits any page on your store, Google Ads records it as a completed purchase with a value of €0. This floods your account with fake conversions, makes your campaign data unreliable, and causes Google's bidding algorithm to optimize for the wrong thing entirely.

TrackBee already handles sending accurate purchase conversions server-side, so this snippet is both redundant and harmful. It needs to be removed.

How to remove it

  1. In your Shopify admin, go to Online Store > Themes.

  2. Next to your active theme, click ... (Actions) > Edit code.

  3. In the file list on the left, open theme.liquid (under Layout).

  4. Use Ctrl+F (or Cmd+F on Mac) to search for the snippet. Look for any of these:

    • gtag('event', 'conversion'

    • AW- followed by your Google Ads account ID

    • <!-- Event snippet

  5. Select and delete the entire script block, from <!-- Event snippet (or <script>) through to the closing </script> tag.

  6. Click Save.

Once removed, re-run the connection check in TrackBee and the error should clear.

Still seeing the error?

The snippet may also be installed via Google Tag Manager or another app. If you're not sure where it's coming from, reach out to our support team and we'll help you track it down.

Did this answer your question?