Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

AdWords Conversion Tracking via DTM

vipinvijayan10
Level 2
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
vipinvijayan10
Level 2
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>

LeoS_Taco
Level 4
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?