Posts tagged with google-tag-manager

I am having a hard time to find a documentation for web conversion tracking for Google Ads.

I would like to understand more about the HTTP POST request that is sent to Google. I can see there is a good documentation for mobile apps: https://developers.google.com/app-conversion-tracking/api/request-response-specs?hl=en#conversion_tracking_request

Is there similar documentation for web? I would like to understand more how i could send conversions to Google creating manually my HTTP request.

I am aware of the Offline conversions API (https://developers.google.com/google-ads/api/docs/samples/upload-offline-conversion), but it doesn't support the new parameters as wbraid

I have set up a Google Ads campaign.

If users search "Cool Clothes" in Google, my campaign website will show in search results.

Now, the user will follow these steps:

  1. Click the campaign website link in the Google search result
  2. Go to https://cool-clothes.com/my-campaign
  3. The user wants to signup an account, so users click the "Sign Up" button
  4. I use Facebook for login, so users will redirect to https://facebook.com first, asking for some permissions.
  5. After permission granted, Facebook will redirect back to my website called https://cool-clothes.com/new-user
  6. https://cool-clothes.com/new-user is where I put the Google Ads tracking code

https://cool-clothes.com/new-user HTML looks like this:

<!DOCTYPE html> <html lang="en">   <head>     <meta charset="UTF-8" />     <meta http-equiv="X-UA-Compatible" content="IE=edge" />     <meta name="viewport" content="width=device-width, initial-scale=1.0" />     <title>Cool Clothes</title>     <!-- Global site tag (gtag.js) -->     <script       async       src="https://www.googletagmanager.com/gtag/js?id=AW-XXX"     ></script>     <script>window.dataLayer = window.dataLayer || [];       function gtag() {         dataLayer.push(arguments);       }       gtag("js", new Date());       gtag("config", "AW-XXX");</script>     <!-- Event snippet for conversion page -->     <script>gtag("event", "conversion", {         send_to: "AW-XXX/XXX",       });</script>   </head>   <body>     Thanks for Sign Up!   </body> </html> 

Here comes my question, the user goes through multiple different HTML pages, how did Google Ads know how to count the conversion?

Are Google Ads using first-party cookies to do this?

The situation is quite complicated to me, let's say:

  1. I have 3 product categories.
  2. I only want to track purchases.

However, if you insert the tracking snippet into the thank you page, each product category will trigger the same tag. customers who buy dresses and customers who buy guns may look totally different. so, if you use the same thank you page to track the conversions, the Google Ads AI will have trouble in optimizing your campaigns:

  • A. Dresses sales campaign
  • B. Guns sales campaign

When people buy a dress, the dress conversion and gun conversion will both increase by one, although the transaction amounts are different by default. This shows that the conversion is contaminating with another campaign (the gun sales campaign).

I'm using Google Tag Manager to pull in some data for my Google Ads. When I goto a product page, I've just hard coded some product ID's as an example, but I get the following error:

This is how I've defined the product ID's, it's saying multiple ID's need to be in an array, to my understanding they are.

Where am I going wrong?