Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2220

phpBB Custom Coding • Re: Add code on every page for tracking

$
0
0
Below <head> in Prosilver's overall_header.html template file

Add the Google Analytics GTAG script, changing the two Tag-IDs to the one Google has assigned to your site.

Code:

  <!-- Google tag (gtag.js) -->  <script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>  <script>    window.dataLayer = window.dataLayer || [];    function gtag(){dataLayer.push(arguments);}    gtag('js', new Date());    gtag('config', 'TAG_ID');  </script>
Your Tag-ID will be something like G-2RBB9Q19G


https://developers.google.com/tag-platform/gtagjs

Statistics: Posted by SQLnovice — Tue Apr 08, 2025 3:33 pm



Viewing all articles
Browse latest Browse all 2220

Trending Articles