Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Can’t track google ads conversions

$
0
0

Replies: 0

Hi Guys,

I tried a few times in a few different ways, but i can not figure out how to track a google ad conversion using this plugin.

When i place my google ads code directly on my website everything works fine, but when i place it inside cookie categories (inside my google analytics snippet) my google ad conversion does not trigger.

Google analytics tracks the user perfectly and only activates when user accepts the cookies, but for some reason google ads is unable to track conversions.

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-XXXXX');
  gtag('config', 'AW-XXXXX');
</script>
  • This topic was modified 12 minutes ago by enricomd.

Viewing all articles
Browse latest Browse all 59525

Trending Articles