How can we help?

How to Install the Google Tag (gtag.js)?

Updated over 2 months ago

Installing the Google Tag (gtag.js)

This guide explains how to install Google's Tag (gtag.js). This tag sends data to Google Analytics (GA4) and Google Ads (for conversions, remarketing) and is separate from ClickSambo's tracking code, which monitors click fraud.

Key Points: 
ClickSambo does not install Google's gtag.js for you.
If you use Google Analytics or Google Ads tracking, you'll typically need both the ClickSambo script and Google's gtag.js on your website.

General Steps to Install Google Tag (gtag.js):
1. Get Your Google Tag Snippet:
a. Log in to Google Analytics 4 or Google Ads.
b. Find the manual installation instructions for your web data stream (GA4: Admin > Data Streams) or conversion action (Google Ads: Goals > Conversions > Tag setup).
c. Copy the entire JavaScript gtag.js snippet provided by Google (it usually starts <script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID">...).

2. Add the Snippet to Your Website:
a. Paste the copied gtag.js snippet immediately after the opening <head> tag in your website's HTML.
b. Ensure this snippet is on every page of your site (often by adding it to a common header template).

3. Verify Installation:
a. After adding the code and publishing your website changes, use tools like Google Tag Assistant or check real-time reports in Google Analytics to confirm the tag is firing correctly.

Important Notes: 
Refer to Google: Always consult Google's official documentation for the most accurate and up-to-date gtag.js setup instructions for GA4 or Google Ads.


Platform Differences: How you add code to your site's <head> varies by website platform (e.g., WordPress, Shopify). Check your platform's specific help guides.
 

Using Google Tag Manager (GTM)? If you use GTM, deploy Google tags (like GA4 configuration or Ads conversion tags) through GTM itself, rather than adding the gtag.js snippet directly to your site's code.
 

In Summary: While ClickSambo provides its own script for click fraud detection, you'll need to install Google's gtag.js separately (following Google's guides) to use Google Analytics or track Google Ads conversions effectively.

Did this answer your question?

Add New Domain

Calculate Saving

Fake Clicks
Cost Per Click(CPC)
Saving
12
X
$ 33