Add this to your child theme function.php at the end, and insert the proper tag. ``

<?php

function ds_checkout_analytics( $order_id ) {
   $order = new WC_Order( $order_id );
   $currency = $order->get_order_currency();
   $total = $order->get_total();
   $date = $order->order_date;
?>
<!-- Paste Tracking Code Under Here -->


<!-- End Tracking Code -->
<?php   
}
add_action( 'woocommerce_thankyou', 'ds_checkout_analytics' );

``

Answer from jrubix on Stack Overflow
🌐
Reddit
reddit.com › r/ppc › deprecated additional scripts: where to move google ads event snippet in shopify?
r/PPC on Reddit: Deprecated Additional Scripts: Where to move Google Ads Event Snippet in Shopify?
September 22, 2024 -

Does anyone know where to connect and paste the Google Ads Event Snippet -code?

Now that the Shopify Checkout settings Additional Scripts -portion of Shopify has disappeared and depricated, I want to install the Event Snippet code using the Google Tag method, and not with Tag Manager or by installing the Google App.

All the instructions and blogs about the subject try to use Tag Manager, instead of Google Tag. Or they change and alter the Event Snippet -script into Enchanted Tracking code. I only want to use the original code that you can copy directly from Google Ads.

Does anyone know a simple way to just to add the original Event Snippet checkout page code from Google Ads with google tag into Shopify in 2024. Custom Pixel? Theme.liquid ?

I'm talking about this Event Snippet code:

<!-- Event snippet for Purchase - STORE NAME conversion page -->

<script>

gtag('event', 'conversion', {

'send_to': 'AW-XXXXXXXXX/xxxxxxxxxxxxxxxxxxx',

'value': {{ checkout.total_price | money_without_currency }},

'currency': 'USD',

'transaction_id': '{{ order.order_number }}'

});

</script>

Discussions

How to Add Google AdWords "Event Snippet" to Pro's Email Form - Support - Themeco Forum
I’m using Pro’s Email Forms to capture leads coming through from Google AdWords, and trying to add an event snippet from Google to track a lead capture/email submission. I can’t find anywhere to add the necessary code. Any help would be appreciated, thanks. More on theme.co
🌐 theme.co
7
0
May 15, 2018
Setting up event snippet for google ads conversion tracking
For tracking conversions, I need to add tags given by google ads. Google ads give a global tag and an event snippet for that particular event. For this, we use global file ie theme.liquid to place global site tag. My question is where do we have to place the event snippet. More on community.shopify.com
🌐 community.shopify.com
0
June 3, 2022
Installing an 'Event Snippet' with Tag Manager
PM or add links here. Essentially you need to crate GA tags in GTM of “event” type and add in the triggers for when someone performs the action on page you want. I’m guessing most likely a “click” type trigger. More on reddit.com
🌐 r/GoogleTagManager
4
2
August 29, 2019
Deprecated Additional Scripts: Where to move Google Ads Event Snippet in Shopify?
Shopify mentions a few methods on their Checkout Shopify's Extensibility upgrade guide . Otherwise, people would need to find a way to hack it into their theme, assuming what they want to do is even possible. The easiest thing would be to just install the Google & YouTube app for Google ads conversion tracking. You can turn off/disconnect all the other features/settings in the app and just use it for conversion tracking. More on reddit.com
🌐 r/PPC
2
2
September 22, 2024
People also ask

What's the difference between Google Analytics goals and Google Ads conversions?
Google Analytics goals track all website conversions regardless of traffic source, while Google Ads conversions specifically track actions from ad clicks. For optimal performance, use native Google Ads conversion tracking rather than importing Analytics goals, as it provides more comprehensive data including cross-device and view-through conversions.
🌐
monsterinsights.com
monsterinsights.com › home › tutorials › how to use google analytics for google ads conversion tracking
How to Use Google Analytics for Google Ads Conversion Tracking
How do I know if my Google Ads conversion tracking is working?
Use Google Tag Assistant to verify your tags are firing correctly. In your Google Ads account, check the "Status" column in your conversions section - it should show "Recording conversions" or "Recent conversions." Test by completing a conversion action yourself while using Tag Assistant.
🌐
monsterinsights.com
monsterinsights.com › home › tutorials › how to use google analytics for google ads conversion tracking
How to Use Google Analytics for Google Ads Conversion Tracking
Why am I not seeing conversions in my Google Ads account?
Common causes include: conversion tags not installed on the correct pages, ad blockers interfering with testing, incorrect Conversion ID/Label, cookie consent blocking tracking, or conversions happening outside your attribution window. Verify tag implementation with Google Tag Assistant first.
🌐
monsterinsights.com
monsterinsights.com › home › tutorials › how to use google analytics for google ads conversion tracking
How to Use Google Analytics for Google Ads Conversion Tracking
🌐
Google Support
support.google.com › google-ads › answer › 7548399
Use the Google tag for Google Ads conversion tracking - Google Ads Help
Note that when a user lands on your site from an ad click, your Google tag for Google Ads conversion tracking will read the ad click information and send that information to Google Ads. On subsequent pages, your Google Ads tags will be able to use the click information from the new cookies that are set on your domain. The Google tag works in unison with another piece of code, an event snippet or a phone snippet, to track your conversions.
🌐
Google Support
support.google.com › sa360 › answer › 7566546
Technical details for Google tag and event snippet - Search Ads 360 Help
Let’s take a closer look at the key fields in the event snippet: 'allow_custom_scripts' : true Enables dynamic Floodlight tags. All activities created in Search Ads 360 generate dynamic tags, and this field must be set to true for dynamic tags to work correctly.
🌐
Unbounce
documentation.unbounce.com › hc › en-us › articles › 203509804-Adding-Google-Ads-Conversion-Tracking-to-Your-Page-in-Classic-Builder
Adding Google Ads Conversion Tracking to Your Page in Classic Builder – Documentation
Once you’ve created your conversion action in Google Ads, you can begin adding the tracking scripts onto your landing page(s). The event snippet - paired with the Google tag (previously known as the global site tag) - should only be added to the page or pop-up following the conversion action.
🌐
WPCode
wpcode.com › home › informational › how to add google ads conversion tracking in wordpress
How To Add Google Ads Conversion Tracking In WordPress
March 12, 2024 - You can find the Google tag for your conversion action by logging into your Google Ads account and then navigating to Goals > Summary. Then, click on the conversion action you created earlier. Under the “Details” tab, you’ll see a “Tag Setup” card. Click on “Install the tag yourself”. Now, you should see the Google tag and Event snippet.
Find elsewhere
🌐
Themeco
theme.co › support
How to Add Google AdWords "Event Snippet" to Pro's Email Form - Support - Themeco Forum
May 15, 2018 - I'm using Pro's Email Forms to capture leads coming through from Google AdWords, and trying to add an event snippet from Google to track a lead capture/email submission. I can't find anywhere to add the necessary code. A…
🌐
Shopify Community
community.shopify.com › start a business
Setting up event snippet for google ads conversion tracking
June 3, 2022 - I am using google ads for my shopify website. For tracking conversions, I need to add tags given by google ads. Google ads give a global tag and an event snippet for that particular event. For this, we use global file ie theme.liquid to place global site tag.
🌐
Wix
support.wix.com › en › article › tracking-google-ads-conversions-using-wix-custom-code
Setting Up Google Ads Conversions | Help Center | Wix.com
Enter "purchase" under Event name. Click Save. ... Click Tags. ... Enter a name for the tag. Tip We recommend "conversion_linker" or similar. Click Choose a tag type to begin setup. Select Conversion Linker. Click Choose a trigger to make this tag fire. Select tr_pageview. Click Save. ... Enter a name for the tag. Tip: We recommend "conversion_tracking" or similar. Click Choose a tag type to begin setup. Select Google Ads Conversion Tracking.
🌐
MonsterInsights
monsterinsights.com › home › tutorials › how to use google analytics for google ads conversion tracking
How to Use Google Analytics for Google Ads Conversion Tracking
July 3, 2025 - By enabling Google Ads conversion tracking in Google Analytics and connecting it with WordPress, you can see what happens after people interact with your ads.
🌐
Reddit
reddit.com › r/googletagmanager › installing an 'event snippet' with tag manager
r/GoogleTagManager on Reddit: Installing an 'Event Snippet' with Tag Manager
August 29, 2019 -

Hello,

I am trying to track 2 very simple conversions on one webpage with Ad Words. I setup both conversions in Ad Words, added the right ID and label to the GTM tag, and setup a basic "just links" trigger for each tag. However there are no conversions showing on the AdWords side. I reached out to Google and they said the global GTM is setup across the website but we need to add an 'event snippet' to the particular page where the conversions take place.

How do I do this with GTM? Novice GTM user here...

🌐
Landingi
landingi.com › home › pomoc › google ads conversion code
Add a Google Ads Conversion Code to a page | Help Center | Landingi
April 3, 2024 - 1. Log in to your Google Ads account, create a new campaign (1) or select an existing campaign and click on View campaign (2). 2. In the upper right corner, click the tools icon and click Conversions in the Measurement section. If you don’t see this section, click on Switch to Expert Mode. ... 8. Open a new tab and go to Landingi. Log in and go to the editor of your landing page. You have to install two JavaScript snippets – a global site tag and an event snippet.
🌐
EasyInsights
easyinsights.ai › home › how to set up conversion tracking in google ads for shopify: a complete overview
Guide to setup Conversion Tracking in Google Ads for Shopify
April 14, 2025 - If there’s already code in the text box, simply add the event snippet on a new line below the existing code.
🌐
Google Groups
groups.google.com › g › adwords-api › c › C7UtZiFKQ7s
Google Event Snippet and Google Global Site Tag Not Working
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message ... I've generated google event snippet and google global site tag for a child account in Adwords using API V201802. In order to test those codes, I've put ...
🌐
Segmanta
help.segmanta.com › segmanta help center › integrations
Google Ads Conversion Tracking
EXAMPLE_ID — would be the conversion ... <!-- Event snippet for Test conversion page --> <script> gtag('event', 'conversion', { 'send_to': 'EXAMPLE_ID/EXAMPLE_LABEL', 'value': 1.0, 'currency': 'USD', 'transaction_id': '' }); </script> Pro-tip: When copying your Conversion ID, ...
🌐
Ecwid
support.ecwid.com › hc › en-us › articles › 207100609-Setting-up-Google-Ads-conversion-tracking
Setting up Google Ads conversion tracking – Ecwid Help Center
From your Ecwid admin, go to Settings → General → Tracking & Analytics → Google Ads codes. Paste the Google tag code into the Google tag field, and then paste the event snippet code into the corresponding field.
🌐
Realgeeks
support.realgeeks.com › how-to-pull-g-tag-and-event-snippet-from-google-ad-words
Set Up Google Ads Tracking for Your Real Geeks Website
Establish a conversion Value - This is used to measure the financial impact this type of conversion has on your advertising · We recommend choosing the option to NOT use a value for tracking leads to focus on capturing new leads without assigning a monetary value to them · Select how many conversions to Count - we recommend selecting the "One" option ... Repeat the event creation process as many times as necessary. ... Once the Google Tag is implemented on your website, it will automatically start tracking specific events, enabling Google Ads to monitor user interactions in real time.
🌐
HubSpot
knowledge.hubspot.com › website-pages › track-conversions-in-google-ads-with-a-global-site-tag
Track conversions in Google Ads with a global site tag
To work with ads data primarily in HubSpot, connect your Google Ads account and install the Google Ads pixel instead. In addition to the global site tag, you should add the event snippet to the head HTML of any thank you pages you want to track conversions for.
🌐
getbrillea
brillea.com › homepage
How to Set Up Your Google Ads Conversion Tracking Tag
October 12, 2021 - Copy the global site tag, then follow the instructions in this link to add it to your website. Next to 'Event snippet', select whether to track conversions on a page load or click.