Hey everyone, I’m hoping someone can offer some clarity before I pull all my hair out. I feel like I’m running around in circles trying to get Google Ads integrated on a site using a custom web pixel.
This is a new site and the owner did not have GTM, so I set up a custom pixel specifically for Ads based on a tutorial I found (from Feed Army), but we can’t verify if it’s set up properly because no ads are running yet. It does say “connected” on the back end, but the Tag Assistant doesn’t work and there’s no browser extensions to test it with. A huge oversight by Shopify IMO, but anyway.
Because I can’t verify if everything is set up properly before they actually turn on their campaigns, I decided to try a different approach. Now I had the site owner set up a GTM account so I can try to connect Ads through GTM, again using a custom pixel.
Now Ads shows that it’s connected to GTM, and GTM shows it’s receiving data when I test the domain, but I don’t know if Ads is actually going to record conversions or not? I installed the GTM code in the custom pixel, but it’s just the “HEAD” code minus the HTML, like so..
//Initialize GTM tag
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-xxxxxx');
I think I need to set up conversion tracking Tags in GTM, so that’s what I did. But I’m not sure. If so, do I need to add more code to the custom pixel, or is the above code enough to send all the Ads conversion data through?
I must have checked 20 YouTube tutorials and they all are still using the theme.liquid and Additional Scripts method, even videos from a few weeks ago. Or they just show GA4 and GTM integrations, which is not what I need.
If anyone has gone through this process or has any advice, I would be very grateful. Thanks!!