• Resolved drazon

    (@drazon)


    Hi, I noticed a couple of threads about setting Google ads conversions using CAOS and your github plugin and I thought to give it a try.

    My current CAOS Settings are:

    BASIC SETTINGS
    Snippet Type:Default
    Anonymize IP: not checked
    Tracking Code Position:Header (default)
    
    ADVANCED SETTINGS
    Compatibility Mode: None (default)
    Download File: Gtag.js
    Cache directory for gtag.js	/uploads/myscripts/
    Site Speed Sample Rate (%): 50
    Enqueue order: 10
    Everything else in this page is unchecked or empty
    None of the CAOS extensions are active.

    In the setup instructions Google Ads if you choose the option “The global site tag is already installed on all pages, but comes from another Google product (such as Google Analytics) or from another Google Ads account” it gives this:

    gtag('config', 'AW-9_digit_code_here');

    and then if you want to set the conversion at the click of something it gives you this:

    <script>
    function gtag_report_conversion(url) {
      var callback = function () {
        if (typeof(url) != 'undefined') {
          window.location = url;
        }
      };
      gtag('event', 'conversion', {
          'send_to': 'AW-9_digit_code_here/_some_hash_here_from_Google',
          'event_callback': callback
      });
      return false;
    }
    </script>

    QUESTIONS
    in your github plugin at the line $adsId = 'YOUR-ADS-ID'; should we set it as

    $adsId = 'AW-9_digit_code_here'; which is the Google Ads Conversion ID or as

    $adsId = 'Google-Ads-Account-ID'
    Where Google-Ads-Account-ID is this one

    PS. in your website comments you mention to use the Google Ads Account ID but reading the docs from Google I think we should use the conversion id.

    Is there any other step I should follow other than installing your plugin and setting the correct ID?

    Thank you in advance and sorry for the long post.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    Sorry for never replying to you, I never received a notification of your message!

    To be honest, it’s been a while since I created this plugin, so I’m not entirely sure, but looking at the documentation I think it’s the first one, starting with AW-.

    Hope it helps!

    Thread Starter drazon

    (@drazon)

    Hi thanks for the reply I have to say that since May 2022 something has changed without me doing anything at all rather than updating CAOS and I receive Google ad conversions. Any idea what could that be?

    Thread Starter drazon

    (@drazon)

    @daanvandenbergh Hi i guess for some reason you don’t receive notifications from this thread. Any comment about my previous post? thank you in advance

    • This reply was modified 2 years, 9 months ago by drazon.
    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi! No, sorry. It happens a lot lately.

    Well, Google has been stepping up and has been updating its JS libraries almost weekly. Fixing things and breaking things. So, Google Ads conversations is one of the things that’s fixed, I guess ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Track Google Ads Conversions through gtag.js v3’ is closed to new replies.