Everything you need to connect a website and a Google Ads account to Guard.
Each protected account receives its own site key. Add the script tag to the <head> of every page your ads link to, ideally in the site-wide header template.
<script async src="https://guard.adnetworktools.com/g" data-k="YOUR_SITE_KEY"></script>
The script is asynchronous, about 4 KB, and only records visits that come from a paid ad click (pages opened with a Google Ads click identifier). Ordinary visits are ignored.
Auto-tagging must be enabled in your Google Ads account (it is on by default), so that landing pages receive the click identifier.
Plugins such as LiteSpeed Cache, WP Rocket or Autoptimize may combine or copy external scripts. Exclude guard.adnetworktools.com from JavaScript optimisation (combine, minify, delay) and purge the whole cache after installing; otherwise cached pages keep being served without the code. Note that ad clicks usually receive the cached page, because caching plugins ignore the gclid parameter.
Open your website with #gtest at the end of the address, for example https://example.com/#gtest. A small box appears in the corner of the page and confirms whether the code is installed and connected. Only you see it; nothing is recorded. Because the part after # never reaches your server, you see exactly the (possibly cached) page your ad visitors get.
Guard also checks the landing pages of your active ads every day and lists any page where the code is missing or altered.
Start in monitor mode to see how your traffic is scored without changing your account, then enable protection. Rules can be adjusted at any time; whitelisted IPs are never excluded.
Advertisers who use a Google Ads tracking template can find the technical specification of our click tracking URL in the click tracker reference.