Expand my Community achievements bar.

AdWords Conversion Tracking via DTM

Avatar

Level 2

This is actually a follow up question on my original postRe: Google Conversion Tracking On a Button

I've added the AdWords Global site tag (gtag.js) as a page top rule - Sequential HTML(single snippet for both DBM and AdWords as per this). And then added the AdWords event snippet onto a button as non-sequential JS. Now when I click on the button I can't seem to find the event snippet firing - could you help please?

Notes

  • I'm checking in Chrome developer console (network tab) to find the respective conversion label
  • Google Tag Assistant isn't picking up the event snippet too
  • when I try adding the gtag+event snippet as a single non-sequential HTML code, I can see an AdWords call happening on the button-click but again not the conversion label.

Regards,

Vipin

2 Replies

Avatar

Level 2

Ignore this question, it's sorted.

Just for everyone's reference, it worked when I added only the gtag part of the event snippet as non-sequential JS

  gtag('event', 'conversion', {

      'send_to': 'AW-XXXXXXX/abcdefghijk',

  });

whereas the entire event snippet is:

<script>

function gtag_report_conversion(url) {

  var callback = function () {

    if (typeof(url) != 'undefined') {

      window.location = url;

    }

  };

  gtag('event', 'conversion', {

      'send_to': 'AW-XXXXXXX/abcdefghijk',

      'event_callback': callback

  });

  return false;

}

</script>

Avatar

Level 4

Did you already have the universal analytics tool set up, or did you not need that? Also, how did you QA it on the front-end to make sure it was firing?