Click-fraud protection for any website
Paste one line, load it through Google Tag Manager, or report paid landings from your own server. Use more than one and Spurn merges them into a single click.
Set up Any website
Tag, GTM or API
- 1
Paste the tag
Before the closing head tag on every page.
Before </head> <script async src="https://spurn.io/s.js" data-site="sp_pub_XXXXXXXX"></script> - 2
Or configure it for a tag manager
Set the site key first and load the script after it. Spurn also publishes a Google Tag Manager community template.
Tag manager <script> window.spurnConfig = { site: 'sp_pub_XXXXXXXX' } </script> <script async src="https://spurn.io/s.js"></script> - 3
Add a server witness
Report paid landings from your backend with the secret key, or run Spurn’s Cloudflare Worker in front of your site. The server sees the IP even when the page’s JavaScript never runs.
Server hit curl -X POST https://spurn.io/api/v1/hit \ -H "Authorization: Bearer sp_sec_XXXXXXXX" \ -H "Content-Type: application/json" \ -d '{ "url": "https://shop.example.com/?gclid=EAIaIQ...", "ip": "203.0.113.24", "ua": "Mozilla/5.0 ...", "source": "custom" }' - 4
Count conversions
Call the conversion command on your thank-you page, or post orders from your server.
Thank-you page <script> spurn('conversion', { value: 49.9, currency: 'USD', orderId: '1001' }) </script>
Stop paying for clicks that never shop
Start on the free plan: 1,000 paid clicks a month, no card. Paid plans begin with a 14-day trial.