Welcome to our Support Center
General
How to manually install the ClickGuard tracking code?

To enable full protection and visitor behavior tracking, you must install the ClickGuard tracking code on your website. This allows ClickGuard to collect session data and apply advanced filtering rules across your traffic.

ClickGuard supports two installation methods: manual installation and installation via Google Tag Manager. This article covers the manual installation process. If you prefer to use Google Tag Manager, refer to Installing the ClickGuard Tracking Code via Google Tag Manager.

Follow the steps below to install the tracking code properly:

Step 1: Copy Your Unique Tracking Code

  1. Log in to your ClickGuard account.
  2. Navigate to Settings → Tracking Code → Standard tracking.
  3. Select 'Install manually'.
  4. Copy the provided JavaScript tracking snippet. This code is unique to your account and website.



Step 2: Add the Code to Your Website

The tracking code must be placed immediately before the closing `</head>` tag on every page where you wish to track activity.

Static HTML websites:

Paste the tracking code into the `<head>` section of each HTML file.

<head>
<!-- Other head elements -->
<script>/* Your ClickGUARD code */</script>
</head>


CMS-based websites (e.g., WordPress):

  • Access your theme settings or install a plugin that supports custom script injection into the `<head>`.
  • Paste the tracking code and save your changes.


Step 3: Verify the Installation

Once the code has been added:

  1. Visit your website and navigate through several pages.
  2. Return to your ClickGuard dashboard.
  3. Go to ClicksLive monitoring Organic traffic to confirm that organic clicks are being tracked.


 

If no data appears after a few minutes, verify that the script is correctly placed and is not being blocked by browser extensions or cookie consent settings.


Important: The tracking code should be added to your website's global layout or template so that it loads on every page. This ensures complete coverage and prevents any activity from going unrecorded.


Once installed, ClickGuard will begin analyzing and protecting your traffic in real time. If you encounter any issues during installation, please contact ClickGuard support.

 

Related articles:

Did this answer your question?