Warning (Click here to dismiss)
Pixel Union cannot provide support for themes modified using this guide. Support for theme modifications are best directed toward a 3rd-party development service such as Storetasker
Merchants often use Google Ads conversion tracking to get the most value out of their advertising efforts. The connection between a customer encountering an ad and purchases becomes more clear with tracking code setups, so consider making this adjustment to your theme.
First, create or access your Google Ads account, then add a conversion action, include the global site tag in the theme.liquid file, and connect the event snippet with your checkout to complete a basic conversion tracking setup with Google Ads.
Create or access your Google Ads account
To create or log into your Google Ads account, go to Google Ads.
At least one advertisement must be set up through Google Ads to gain the tracking codes necessary for this adjustment. For more information on this task, refer to Google's help articles.
Add a conversion action
In the top-right corner of your Google Ads account page, select the tools icon (wrench icon). Select Conversions under Measurements.
Select the plus button (+), then Website.
Follow the prompts to fill in your conversion action's details, then select Create and continue.
Include global site tag in theme.liquid
Once you have created a new conversion action, the next step is to gather the Global site tag and add it to your theme files.
What steps should I take before modifying theme files?
When prompted with two options for this process, select Install the tag yourself.
Copy your global site tag to your clipboard, then open your Shopify admin.
In Online Store, select your theme's Actions dropdown, then Edit code.
Open the theme.liquid file under Layout, then locate the opening head tag.
On a new line just below <head>, paste your global site tag.
Connect the event snippet with your checkout
Back in Google Ads, open the Event snippet section, then Page load.
Copy the event snippet code to your clipboard, then return to your Shopify admin.
Open Settings in the bottom-left, then Checkout.
Paste the code to the Additional scripts field, then select Save.