The Google tag (gtag.js) is a single tag you can add to your website to use a variety of Google products and services (e.g., Google Ads, Google Analytics, Campaign Manager, Display & Video 360, Search Ads 360). Instead of managing multiple tags for different Google product accounts, you can use the Google tag across your entire website and connect the tag to multiple destinations.
Add the Google tag to your website
To start collecting data with the Google tag:
-
Open a Google product you use and access the Google tag screen.
-
Copy your Google tag ID.
-
Paste your Google tag ID in the code sample below. Place the Google tag snippet immediately after the opening
<head>
HTML tag on every page you want to measure.
<!-- 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>
NOTE:
Even if you have Google Tag Manager installed and working on your website, that does not mean you have Google Tag installed. This tag is mandatory for Clickguard to start populating Audience exclusions.
Comments
0 comments
Please sign in to leave a comment.