Google Tag Manager

In Getting started · Updated (1 months ago)

With the ClickPatrol tag in Google Tag Manager, you can track and classify user interactions as Legitimate or Suspicious events directly on your website. These events can be used to build custom audiences in platforms like Google Ads or Analytics, allowing you to target real users more effectively. You can also control which tags or scripts load based on the event type, helping block unnecessary scripts for suspicious traffic. Overall, it lets you optimize ad spend, improve data quality, and enhance protection against invalid clicks.

Setup ClickPatrol Tag in Tag Manager#

To set up Google Tag Manager for ClickPatrol, follow these steps:

1. Download the Template

2. Import the Template into Google Tag Manager

  • Open Google Tag Manager.
  • Go to Templates → New.
  • Click the three dots in the top right corner.
  • Select Import and upload the template file.
  • Click Save.

3. Create a New Tag

  • Go to the Tags section.
  • Click New → Tag Configuration.
  • Under Custom, select ClickPatrol Tag (or ClickPatrol Tag Manager).
  • Enter your ClickPatrol UID (find it under Integrations → Tracker in your Dashboard).

4. Set Up Triggering

  • Click Triggering.
  • Choose All Pages.
  • Give the tag a unique name (for example, ClickProtect or your own naming convention).
  • Click Save.

5. Create a Custom Event Trigger for ClickPatrol events

  • Go to Triggers → New → Trigger Configuration.
  • Select Custom Event.
  • Event name: ClickPatrol_.*
  • Enable Use regex matching.
  • Name the trigger following your naming convention and Save.

6. Publish

  • Click Submit to publish the changes in Tag Manager.

This matches all ClickPatrol events that start with ClickPatrol_ (for example, ClickPatrol_LegitimateClickPatrol_Suspicious).

Result#

After setting up the ClickPatrol tag in Google Tag Manager, your website will start detecting and classifying ad clicks as Legitimate or Suspicious. These events won’t appear automatically in analytics or ad platforms, but you can use our integration guides to connect them with Google Ads, Facebook, or other tools. Once connected, you’ll be able to build audiences, optimize campaigns, and control which scripts load based on traffic quality. This setup lays the foundation for more accurate data and better protection against invalid clicks.

Was this article helpful?

Let us know so we can improve our documentation

Thanks for your feedback!

Need Help?

If something isn't working or you have questions, our support team is here to help you.

Contact Support