Shopify Tracking for Google Ads Enhanced Conversion
Client Background:
Clients has a Shopify Store he wanted to run Google Ads to increase website sales and track key metrics like the number of sales from Google ads, the revenue generated, abandoned carts, and the overall Performance of their Ad campaigns.
My Role:
As a TRACKING & ANALYTICS EXPERT, I helped him to implement Google Ads Enhanced Conversion tracking on his Shopify website.Â
Challenges:
This Shopify Store didn’t have a Data Layer enabled and he didn’t want to install Any channel app like Elever to enable it. It was essential to have this information available in the Data Layer to track important metrics like product values, transaction ID, Currency, and user data, such as First name, Last Name, Email, Phone, etc. Without it, accurately measuring key metrics and optimizing the ad campaigns with enhanced tracking would be difficult
Solution:
After a quick 30-minute Zoom call and a look at his Shopify website and requirements, I decided to create 3 conversion actions.
I use Custom JavaScript to push the Data Layer Code and enable the Data layer.
Conversion actions:
đź›’Add To Cart
🌟Begin Checkout
🌟Purchase
I use Google Tag Manager to manage the Conversion Tags /Scripts from a single interface.
I create a lot of Variables to get accurate data from the Data layer. Also Created some Tags and Triggers in Google Tag Manager.
Here’s a snapshot of what I’ve delivered for him!
Conversion Actions Setup in Google Ads Account
Conversion Action Created In Google Ads. I have created 3 Conversion actions:Â
add_to_cart,  checkout, & purchase
I added the Google Tag Manager (GTM) code as an additional script
Edited the Theme code to add custom JavaScript to enable the data layer, ensuring that all relevant interactions on the website were accurately visible in Data Layer
Edited theme. liquid and added dataLayer-allPages.liquid to put custom JavaScript to enable the data layer.
Required Variables created From Data Layer in GTMÂ
Events are pushed and Variables are working Perfectly in GTM Preview Mode
Created required Triggers : add_to_cart, checkout, & purchase
Deploy All the Tags in GTM
Add_to_cart, Checkout, Purchase Tags fired in GTM preview mode
Conversion Actions are Active now
After thoroughly testing in GTM to ensure data accuracy, I published the container and made it live.