Journal
Tutorials & GuidesJanuary 11, 20265 min read

Get Protected in Minutes: The Step-by-Step AdPurity Setup Guide

Ready to stop ad fraud? Follow this simple guide to install AdPurity on your website and sync it with Google, Meta, and TikTok for instant protection.

From Setup to Security in Three Steps

The biggest barrier to adopting online ad fraud detection tools is often the fear of a complex technical setup. Many enterprise solutions require weeks of "learning" and developer heavy-lifting.

AdPurity was built for the agile marketer. Our implementation process is designed to be completed in a single afternoon without needing to rewrite your entire website's codebase.

By following this three-step guide, you can start filtering out bots and protecting your ROAS immediately.


Step 1: Deploy the AdPurity Tracking Script

The heart of AdPurity is our lightweight, asynchronous script. This script performs the behavioral fingerprinting that identifies non-human traffic in real-time.

Option A: Direct Installation Copy your unique AdPurity snippet from the "Settings" tab and paste it into the <head> section of your website. This ensures the script loads before the user interacts with any conversion elements.

Option B: Google Tag Manager (Recommended) If you use GTM, simply create a new "Custom HTML" tag.

  1. Paste the AdPurity script into the HTML field.
  2. Set the trigger to "All Pages" or "Initialization - All Pages."
  3. Publish your container.

Technical Note: The AdPurity script is "non-blocking," meaning it will not impact your PageSpeed scores or Core Web Vitals.

Developer installing code snippet on a website


Step 2: Sync Your Ad Accounts

Once the script is live, you need to give AdPurity the authority to block bad actors on your behalf. We use secure OAuth connections to communicate with your ad managers.

  1. Navigate to "Integrations": Select the platforms you currently use (Google Ads, Meta, TikTok).
  2. Authorize the Connection: Log in with your admin credentials. AdPurity will request "Write" access to your exclusion lists.
  3. Set Your Auto-Block Rules: * Conservative: Only block known, high-confidence data center bots.
    • Aggressive: Block any session with suspicious behavioral signals (ideal for high-attack niches).

Once synced, AdPurity will automatically push "Invalid IP" and "Device ID" exclusions to your campaigns every 15 minutes.


Step 3: Configure Your "Pixel Firewall"

This is the most critical step for bot traffic monitoring for marketers. The Pixel Firewall prevents bot clicks from triggering conversion events, which keeps your algorithm "clean."

Instead of your standard "Purchase" or "Lead" event firing directly, you will wrap it in a simple AdPurity check:

if (window.adPurity.isHuman) {
  fbq('track', 'Purchase', {value: 0.00, currency: 'USD'});
}

By adding this logic, you ensure that only verified human actions are reported back to Meta or Google. This stops the "feedback loop" where ad platforms optimize your budget to find more bots.

Why Your Meta and Google Ads Data May Be Lying to You


Implementation Checklist

TaskStatusBenefit
Install Script[ ]Enables behavioral fingerprinting.
Sync Google Ads[ ]Automates IP exclusion lists.
Sync Meta/TikTok[ ]Blocks fraudulent device IDs.
Enable Pixel Firewall[ ]Cleanses conversion data for algorithms.
Verify Setup[ ]Ensures data is flowing to the dashboard.

Common Installation Questions

Does this replace my Meta Pixel? No. AdPurity works alongside your existing pixels. It acts as a gatekeeper, telling your pixels when to fire and when to stay silent based on traffic quality.

What if I have multiple domains? AdPurity supports multi-domain setups. You can use the same account to monitor your main site, your landing pages, and even your subdomains to ensure a unified defense.

How do I know if it's working? Check the "Live Stream" tab in your AdPurity dashboard. You will see clicks appearing in real-time with a status of "Verified," "Suspicious," or "Blocked."

Troubleshooting Ad Analytics Discrepancies and Fake Traffic


Real-World Use Case: The 15-Minute Turnaround

A lead generation company for home services was hit by a sudden bot attack that was submitting 200 fake leads an hour. Their sales team was overwhelmed, and their CRM was cluttered with junk.

The Implementation:

  1. They installed the AdPurity script via Google Tag Manager (5 minutes).
  2. They synced their Google Ads account and set blocking to "Aggressive" (5 minutes).
  3. They added the "isHuman" check to their Gravity Forms submission button (5 minutes).

The Result: The fake lead submissions stopped instantly. Because the "Lead" event stopped firing for bots, Google Ads automatically shifted the budget away from the fraudulent placements that were causing the attack.

Marketing team reviewing dashboard data on a large screen


Action Plan: Start Your Protection Today

  1. Sign Up for a Trial: Get your API key and tracking snippet.
  2. Deploy via GTM: Use our pre-built tag template for the fastest installation.
  3. Review Your First 24 Hours: Look at the "Traffic Purity" report to see which channels are attracting the most bots.
  4. Iterate: Adjust your blocking thresholds as you become more comfortable with the data.

Final Thoughts: Security is a Process, Not a Project

Implementation is just the beginning. The most successful marketers use AdPurity as a permanent part of their stack, constantly refining their "Pixel Firewall" to stay ahead of new threats.

The sooner you install, the sooner you can stop worrying about your budget and start focusing on your growth.

Get Started with Your AdPurity Installation

Protect the traffic you pay for.

Put the tactics from this article into practice with AdPurity's fraud detection workflow.