Last updated: 20 June 2025
This article shows you how to use Google Tag Manager (GTM) to add Polygraph to your landing pages quickly and easily.
How to set up and use Polygraph
We’ve previously covered how to set up and use Polygraph in detail. In short, there are just two key steps:
- Add the Polygraph tracking code to the
<HEAD>section of your website. - Make sure your ads include the UTMs
utm_campaign, utm_source,andutm_term. (If you’re unfamiliar with UTMs, check out our article What are UTMs and why should they be used?)
If adding the tracking code directly to your website is difficult—say, you don’t have access to the source code—you can use Google Tag Manager (GTM) as an alternative.
How to use Polygraph with Google Tag Manager (GTM)
Follow these steps to add Polygraph to your landing pages using GTM:
- In your GTM account, click Add a new tag.
- Select Tag Configuration and choose Custom HTML.
-
Paste the following in the HTML field:
<!-- Polygraph fraud detection -->
<script src="https://cdn.polygraph.net/pg.js"></script>
<!-- /Polygraph fraud detection -->
- Click Triggering and select Initialization - All pages.
- Click Save and name the tag "Polygraph".
- Finally, click Submit.
That’s it! GTM will now add Polygraph to your landing pages. (Remember to include UTMs in your ads!)
A word of warning
While using GTM to add Polygraph is convenient, it’s generally better to add the tracking code manually to your website’s <HEAD> section. Here’s why:
- When you use GTM, you depend on a third party (Google) to ensure Polygraph loads correctly on your landing pages. Manually adding the code removes this dependency.
- GTM can introduce a small performance overhead. Adding the tracking code directly helps ensure your website runs at peak speed.
In summary
Adding Polygraph to your website via Google Tag Manager is straightforward, but it does have some drawbacks. Whenever possible, we recommend manually adding the Polygraph tracking code directly to your website for optimal reliability and performance.