Add Google Ads Conversion Tracking
What Is Conversion Tracking?
A Google Ads conversion tag fires on the order confirmation (Thank You) page after a customer completes a purchase. It reports the order back to Google so you can see which ads and keywords are driving sales.
Cartly has a dedicated injection point for order-confirmation scripts — separate from site-wide scripts — so your conversion tag fires exactly once per successful purchase and never on error pages.
Where to Add the Tag
Go to Preferences → Checkout / Order Status Scripts. This section is specifically for code that should run on the order confirmation page. Do not use Settings → Custom Scripts for conversion tracking — that section fires on every page of your storefront, which would inflate your conversion counts.
How to Add a Google Ads Tag
- In your Google Ads account, go to Tools → Measurement → Conversions.
- Create a new conversion action or open an existing one. Choose Website as the source.
- In the tag setup, select Use Google Tag Manager or Install the tag yourself. If installing yourself, copy the Global site tag snippet — it usually contains two
<script>blocks. - In your Cartly admin, go to Preferences → Checkout / Order Status Scripts.
- Paste the Google Ads snippet into the Head Script field.
- Click Save.
Cartly automatically handles the CSP (Content Security Policy) requirements — you do not need to add any nonce attributes to the script tags.
Multi-Script Snippets
Google Ads typically gives you two <script> tags to paste (an async loader script and an inline configuration block). Cartly executes both correctly — paste the full snippet as-is without splitting it.
Testing Your Tag
- Complete a test order on your storefront.
- On the Thank You page, open browser DevTools → Network tab and look for a request to
googleadservices.comorgoogletagmanager.com. - In Google Ads, use Tools → Tag Diagnostics to verify the tag is firing.
Other Conversion Tracking Platforms
The same injection point works for:
- Facebook Pixel — paste the base Pixel code + Purchase event in the Head or Body Script field.
- TikTok Pixel — paste the TikTok Pixel snippet in the Head Script field.
- Bing Ads / Microsoft Advertising — paste the UET tag in the Head Script field.
- Snapchat Pixel, Pinterest Tag, Twitter Pixel — all work the same way.
See also: Add a chat widget or GTM to your storefront (site-wide scripts)