I recently launched some Google Ads campaigns to drive traffic to my sister's office who's a dentist and I would like to track the phone calls made through the website.
Since I've already pasted the Google Analytics script on my Shopify preference, I saw on the Google tutorial that i need to add the config command (the piece of code that contains my conversion ID) to every instance of the global site tag.
However, I'm not able to locate the global site tag on my theme liquid in order to made the necessary change indicated on the Google Tutorial,
The tutorial says that the global site tag should be looking like this after I locate it and I update it with the google ads command :
<script async src="https://www.googletagmanager.com/gtag/js?id=GA-_TRACKING_ID">
window.dataLayer = window.dataLayer || ;
gtag('js', new Date());
Have anyone already done this before ? Where can i find the Google Analytics script in order to add the Google Ads tag?
Thank you in advance for your help guys!
Have a pleasant evening!
Hope this will help you https://www.youtube.com/watch?v=pnp_es0VB0Y
It's easier to place a Google tag manager (GTM) snippet ones to your theme and then create tags with Ads in GTM.
To connect your your GTM https://help.shopify.com/en/manual/reports-and-analytics/google-analytics/google-tag-manager. It's easy.
Then in GTM create a constant with your Google analytics ID
Then Create a Tag connecting your Google Ads as described. Submit your changes in GTM.
GTM will add all services to your site and you won't need to add any snippets more to the code.