Google Ads Conversion Tracking for Shopify Store

Google Ads Conversion Tracking for Shopify Store

Table of Contents:

I. Introduction II. Setting up Conversion Tracking for Shopify Store A. Directly using your Shopify Store B. Through Google Tag Manager III. Implementing Conversion Tracking Manually A. Setting up Conversion Tracking for Google Ads B. Setting up Conversion Tracking for Google Tag Manager IV. Creating Data Layer Variables A. Value B. Transaction ID C. Currency V. Creating a Trigger VI. Creating a Tag VII. Conversion Linker VIII. Previewing Conversion Tracking IX. Troubleshooting Conversion Tracking X. Conclusion

Setting up Conversion Tracking for Shopify Store

If you're running an e-commerce store on Shopify, it's important to track your conversions to measure the success of your advertising campaigns. In this article, we'll walk you through the process of setting up conversion tracking for your Shopify store using Google Ads and Google Tag Manager.

Directly using your Shopify Store

The first approach we'll cover is setting up conversion tracking directly on your Shopify store. To get started, you'll need a Google Ads account. Once you have an account, follow these steps:

  1. Go to "Conversions" in your Google Ads account and click "Create new conversion."
  2. Give your conversion event a name and select "Website" as the source.
  3. Choose "Use different values for each conversion" and select "Purchase" as the conversion action.
  4. Set up the conversion value and select the appropriate conversion window.
  5. Click "Done" and copy the conversion tracking code.
  6. Go to your Shopify store and navigate to the "Online Store" section.
  7. Click "Themes" and select "Edit code."
  8. Open the "theme.liquid" file and paste the conversion tracking code in the head section.
  9. Save the file and go back to Google Ads.
  10. Click "Install the tag yourself" and copy the global site tag.
  11. Go back to your Shopify store and paste the global site tag in the additional scripts section.
  12. Save the file and you're done!

Through Google Tag Manager

The second approach we'll cover is setting up conversion tracking through Google Tag Manager. This approach is a bit more complex, but it offers more flexibility and control over your conversion tracking. Here's how to do it:

  1. Set up a Google Tag Manager account and create a new container for your Shopify store.
  2. Install the Google Tag Manager code on your Shopify store.
  3. Create a new conversion event in Google Ads and copy the conversion tracking code.
  4. Create a new data layer variable for the conversion value, transaction ID, and currency.
  5. Create a new trigger for the conversion event.
  6. Create a new tag for the conversion event and link it to the trigger.
  7. Set up conversion linker to track cross-browser conversions.
  8. Preview your conversion tracking to make sure it's working correctly.

Implementing Conversion Tracking Manually

Now that you know how to set up conversion tracking for your Shopify store, let's dive into the details of implementing it manually.

Setting up Conversion Tracking for Google Ads

To set up conversion tracking for Google Ads, follow these steps:

  1. Go to "Conversions" in your Google Ads account and click "Create new conversion."
  2. Give your conversion event a name and select "Website" as the source.
  3. Choose "Use different values for each conversion" and select the appropriate conversion action.
  4. Set up the conversion value and select the appropriate conversion window.
  5. Click "Done" and copy the conversion tracking code.
  6. Paste the conversion tracking code in the head section of your website.
  7. Save the file and you're done!

Setting up Conversion Tracking for Google Tag Manager

To set up conversion tracking for Google Tag Manager, follow these steps:

  1. Create a new conversion event in Google Ads and copy the conversion tracking code.
  2. Create a new data layer variable for the conversion value, transaction ID, and currency.
  3. Create a new trigger for the conversion event.
  4. Create a new tag for the conversion event and link it to the trigger.
  5. Set up conversion linker to track cross-browser conversions.
  6. Preview your conversion tracking to make sure it's working correctly.

Creating Data Layer Variables

Data layer variables are used to pass dynamic values from your website to Google Tag Manager. Here's how to create data layer variables for the conversion value, transaction ID, and currency:

Value: Create a new data layer variable called "dlv_value" and link it to the "total_value" data layer variable.

Transaction ID: Create a new data layer variable called "dlv_transaction_id" and link it to the "transaction_id" data layer variable.

Currency: Create a new data layer variable called "dlv_currency" and set it to a fixed value (e.g. "USD").

Creating a Trigger

A trigger is used to fire a tag when a specific event occurs on your website. Here's how to create a trigger for the conversion event:

  1. Create a new trigger and give it a name (e.g. "Purchase Event").
  2. Select "Custom Event" as the trigger type.
  3. Set the trigger to fire on the "gn_purchase" event.

Creating a Tag

A tag is used to send data to Google Ads or Google Analytics. Here's how to create a tag for the conversion event:

  1. Create a new tag and give it a name (e.g. "Google Ads Conversion").
  2. Select "Google Ads Conversion Tracking" as the tag type.
  3. Set the conversion ID and conversion label to the values provided by Google Ads.
  4. Set the conversion value, transaction ID, and currency to the data layer variables you created earlier.
  5. Link the tag to the trigger you created earlier.

Conversion Linker

Conversion linker is used to track cross-browser conversions. Here's how to set it up:

  1. Create a new tag and give it a name (e.g. "Conversion Linker").
  2. Select "Conversion Linker" as the tag type.
  3. Set the trigger to fire on all pages.

Previewing Conversion Tracking

Before you launch your conversion tracking, it's important to preview it to make sure it's working correctly. Here's how to do it:

  1. Go to the preview section in Google Tag Manager.
  2. Connect to your Google Tag Manager container.
  3. Process a transaction on your website.
  4. Check the conversion tracking in Google Ads to make sure it's working correctly.

Troubleshooting Conversion Tracking

If you're having trouble with your conversion tracking, here are some common issues to look out for:

  1. Make sure your conversion tracking code is installed correctly on your website.
  2. Make sure your data layer variables are set up correctly.
  3. Make sure your triggers and tags are set up correctly.
  4. Make sure your conversion linker is set up correctly.
  5. Check the conversion tracking in Google Ads to see if it's working correctly.

Conclusion

Setting up conversion tracking for your Shopify store is essential for measuring the success of your advertising campaigns. By following the steps outlined in this article, you can set up conversion tracking using Google Ads and Google Tag Manager. Remember to preview your conversion tracking before launching it to make sure it's working correctly.

I am a shopify merchant, I am opening several shopify stores. I use ppspy to find Shopify stores and track competitor stores. PPSPY really helped me a lot, I also subscribe to PPSPY's service, I hope more people can like PPSPY! — Ecomvy

Join PPSPY to find the shopify store & products

To make it happen in 3 seconds.

Sign Up
App rating
4.9
Shopify Store
2M+
Trusted Customers
1000+
No complicated
No difficulty
Free trial