Google Tag Manager
With the ClickPatrol tag in Google Tag Manager, you can track and classify traffic as Legitimate or Suspicious events directly on your website. These events can be used to build custom audiences in platforms like Google Ads or GA4, 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. Import the ClickPatrol Template from the Gallery
- Open Google Tag Manager.
- Go to Templates → New.
- Click Search Gallery.
- Search for ClickPatrol, or open the template directly via this gallery link.
- Click Add to workspace and confirm the required permissions.
2. Create a New Tag
- Go to the Tags section and click New.
- Give the tag a unique name at the top (for example, ClickPatrol or your own naming convention).
- Click Tag Configuration and select ClickPatrol Tag under Custom.
- Enter your ClickPatrol UID (find it under Integrations → Tracker in your Dashboard).
3. Set Up Triggering
- Click Triggering.
- Choose All Pages.
- Click Save.
4. 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 (for example, ClickPatrol Event Trigger or your own naming convention) and Save.
5. Publish
- Click Submit to publish the changes in Tag Manager.
This matches all ClickPatrol events that start with ClickPatrol_ (for example, ClickPatrol_Legitimate, ClickPatrol_Suspicious).
Result#
After setting up the ClickPatrol tag in Google Tag Manager, your website will start detecting and classifying traffic 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, GA4, Meta, 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
Need Help?
If something isn't working or you have questions, our support team is here to help you.
Contact Support