I have been asked about adding Google Analytics and adwords tracking code into couchcms so the user can add it themselves, I have done Google Analytics going by this post I found viewtopic.php?f=8&t=8381 but unsure how to add Google Adwords tracking code as I have not used Adwords before in the past so unsure what the tracking code looks like

I'm guessing I can do it a similar way to the Google Analytics code but if anyone has sample code to send me so I can see what it looks like and start to integrate it

I found this but not sure if is right? I found that on https://support.google.com/google-ads/a ... 4?hl=en-GB

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