Google Ads Setup?

I’ve seen this asked several times in the forum, but the answers never seem to have enough detail.

Here are the two js snippets required to setup the conversion.

<!-- Google tag (gtag.js) -->
<script async src=""></script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'AW-1098xxxxx');
<!-- Event snippet for Credits Purchased conversion page
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
function gtag_report_conversion(url) {
  var callback = function () {
    if (typeof(url) != 'undefined') {
      window.location = url;
  gtag('event', 'conversion', {
      'send_to': 'AW-1098xxxxx/sk1bxxxxxx-PQo',
      'value': 10.0,
      'currency': 'USD',
      'transaction_id': '',
      'event_callback': callback
  return false;

Here is the current setup in Zaraz

Ads Questions:

  1. Should the conversion label be ‘AW-1098xxxxx/sk1bxxxxxx-PQo’ or ‘/sk1bxxxxxx-PQo’?
  2. Do I need to load the gtag script separately via Zaraz HTML?
  3. Why does the tool setup page have “zaraz.tool.details.settings.header.undefined” on it?
  4. The Ads UI is showing the tag as ‘inactive’ and the conversion status as ‘inactive’.
    What do I need to do to verify the tag?
  5. Is there only one type of debug log for G Ads? I notice with GA4, there are several including a URL that sends data.
  6. How does this recent change affect the setup?
    Get the conversionId from ComponentSettings, not only from the payload · Issue #2 · managed-components/google-ads · GitHub

Other Notes:
I can not read the source code GitHub - managed-components/google-ads: Google Ads Managed Component.
I get one of two errors.

  • "Failed to load latest commit information. "
  • “Error loading page”

But I can read the code for other components.

1 Like

Solution provided by Cloudflare Support:

  1. The conversion ID is wrong. It should be AW-1098xxxxx instead of 1098xxxxx
  2. No, you should just use the Google Ads Managed Component.
  3. This is a UI bug, thank you for catching it. We will work in order to fix it as soon as possible.
  4. Conversion can take several hours to populate data in GAds interface. If the tool is correctly set up and firing on your site, it should populate Google Ads interface.
  5. You posted as screenshot of the Zaraz debugger with the action firing, so this is half of the verification. The other half would happen in GAds interface, to check that the volumes are consistent.
  6. For GAds there is only one type of debug, for now.
  7. AdBlocker was causing issues with Github.

Still trying to get this working on my end.

For #1, what did you end up using for the “conversion label” (not conversion ID):

  1. ‘AW-1098xxxxx/sk1bxxxxxx-PQo’
  2. ‘/sk1bxxxxxx-PQo’ (with or without the leading slash)