Documentation
Everything you need to protect your PPC campaigns from click fraud.
Installation
Google Tag Manager Setup
Install ClickDefender using GTM with our pre-built container template.
API Reference
Full API documentation for custom integrations and advanced use cases.
Integrations & Alerts
Integrations
Connect to Google Ads, Slack, and more for automated protection.
Webhooks
Receive real-time fraud alerts in your own systems via HTTP.
Alerts & Security
Configure email alerts and manage API key security.
Advanced Settings
IP lists, blocking modes, detection rules, geo-targeting, and thresholds.
Quick Start
1Create a Property
After signing up, go to your Dashboard and click "Add Property". Enter a name for your website and optionally the domain.
2Copy Your Tracking Code
Once created, you'll see your unique JavaScript snippet. Copy it to your clipboard.
<script>
(function() {
var s = document.createElement('script');
s.src = 'https://www.clickdefender.app/defender.js';
s.async = true;
s.onload = function() {
window.ClickDefender.init({
apiKey: 'YOUR_API_KEY',
endpoint: 'https://www.clickdefender.app'
});
};
document.head.appendChild(s);
})();
</script>3Add to Your Landing Pages
Paste the code in the <head> section of your PPC landing pages.
Platform-specific instructions:
- WordPress: Use a plugin like "Insert Headers and Footers" or add to your theme's header.php
- Shopify: Go to Online Store → Themes → Edit code → theme.liquid
- Wix: Settings → Custom Code → Add to Head
- Squarespace: Settings → Advanced → Code Injection → Header
- Custom HTML: Add directly inside the <head> tag
Verify Installation
Visit your landing page, then check your ClickDefender dashboard. You should see events appearing within seconds. The property card will show "Active" once verified.
How It Works
Visitor Tracking
Fraud Scoring
Real-Time Detection
IP Blocklist Export
Detection Rules
ClickDefender uses 8 sophisticated rules to detect click fraud. Each rule contributes to the overall fraud score.
Repeat Click Detection
Short Dwell Time
No Scroll Detection
Datacenter IP Detection
VPN/Proxy Detection
Honeypot Trap
class="cd-honeypot" and position it off-screen.Score impact: +40 pointsGeographic Mismatch
Rapid Click Pattern
Advanced Configuration
Honeypot Setup
Catch bots that click invisible links
Add a hidden element to your page that only bots will click:
<!-- Add this anywhere in your page body --> <div class="cd-honeypot" style="position:absolute;left:-9999px;opacity:0;"> <a href="#">Click here for discount</a> </div>
Then enable honeypot detection in your script:
window.ClickDefender.init({
apiKey: 'YOUR_API_KEY',
endpoint: 'https://www.clickdefender.app',
honeypotSelector: '.cd-honeypot' // Enable honeypot detection
});Debug Mode
See what ClickDefender is tracking
Enable debug mode to see console logs during development:
window.ClickDefender.init({
apiKey: 'YOUR_API_KEY',
endpoint: 'https://www.clickdefender.app',
debug: true // Logs events to browser console
});Google Ads IP Exclusions
Block fraudsters from seeing your ads
- Go to your property in ClickDefender and click "Export Blocklist"
- Download the CSV file containing blocked IP addresses
- In Google Ads, go to Settings → Additional settings → IP exclusions
- Enter the IP addresses from your blocklist (up to 500 per campaign)
- Repeat weekly to keep your exclusions up to date
Pro tip: Export and update your blocklist weekly for best results. Fraudsters often rotate IPs, so fresh data is essential.
Frequently Asked Questions
Will this slow down my website?
Does this block real customers?
Is it GDPR compliant?
How is this different from Google's invalid click detection?
Ready to stop click fraud?
Start protecting your ad spend in under 60 seconds.