Guide to set up Google Ads conversion tracking on your Shopify store
Step-by-step guide to set up Google Ads conversion tracking on your Shopify store manually using code snippets:
Step 1: Create a Conversion Action in Google Ads
- Log in to your Google Ads Account. Navigate to Tools and Settings: Click on the wrench icon in the top-right corner.
- Select "Conversions" under the Measurement section.
- Create a New Conversion Action:
- Click on the "+ New conversion action" button.
- Select "Website" as the conversion type. Enter Your Website URL: Paste the URL of your test site or your actual website.
Click on "Scan" (you can skip this step if you prefer to proceed manually).
- Create Conversion Actions Manually:
Click on "Add a conversion action manually".
Step 2 Set Up Conversion Details:
- Select "Purchase" as the category.
- Name the conversion action, e.g., "Purchase".
- Choose "Use different values for each conversion".
- Keep other settings as default and click "Done". Click on "Save and continue".
Step 3: Set Up Google Tag on Your Website
- Get the Google Tag Code:
- Click on "Setup" to get the Google tag code. Copy the provided code snippet.
Step 4. Add the Google Tag to Your Shopify Store:
- Go to your Shopify admin panel.Navigate to "Online Store" > "Themes".
- Click on "Actions" (three dots) > "Edit code".
- Locate and open the theme.liquid file.
- Paste the Google tag code right below the <head> tag. Click "Save".
Step 5. Add the Google Tag to the Checkout Page:
- Go back to Shopify admin.
- Navigate to "Settings" > "Checkout".
- Scroll down to the "Order status page" section.Paste the Google tag code in the "Additional scripts" field.
- Click "Save".
Step 6: Set Up Purchase Conversion Tracking
- Copy the Event Snippet Code:
- After setting up the Google tag, you’ll see an event snippet code.
- Copy this code snippet.Modify the Event Snippet for Dynamic Values:
- Open a text editor (e.g., Notepad).Paste the copied event snippet code.
Step 7 To make the conversion value dynamic, follow the steps below.
- Get the Dynamic Conversion Code:
- Visit the Google Ads conversion tracking tutorial in the Shopify Help Center.
- Navigate to Step 4: "Make the conversion value dynamic".
- Copy the provided code snippet.
Integrate the Dynamic Code:
In your text editor, replace the value part of the event snippet with the dynamic code.
Ensure the send_to field matches your original event snippet.
For example, replace "value": 1.0 with the dynamic code block provided in the tutorial.
Paste the Modified Code:
Go back to Shopify admin.
Navigate to "Settings" > "Checkout".
Scroll down to "Order status page" > "Additional scripts".
Paste the modified event snippet code.
Click "Save".
Step 8: Confirm and Finalize
Confirm Setup in Google Ads:
Click "Confirm" in your Google Ads account to finalize the setup.
It may take a few hours for the status to update.
Step 9: Test the Setup:
Make a test purchase on your Shopify store.
Verify if the conversion is tracked correctly in Google Ads.
By following these steps, you will have successfully set up Google Ads conversion tracking for your Shopify store, ensuring all purchase values are accurately tracked.
Updated on: 26/06/2024
Thank you!