Integration Guide

Just embed a script into your website to start tracking and preventing ad click fraud

Introduction

Welcome to the NS Ads Xperts integration guide - Professional ad click fraud prevention solution. Just embed a script into the <head> tag of your website, and the system will automatically track and analyze all clicks from ads.

Important notes:
  • Script must be embedded in the <head> tag of your website
  • Apply to ALL pages that need tracking
  • Compatible with 9 ad platforms:
    Google Ads Facebook Ads TikTok Ads Zalo Ads Microsoft Ads LinkedIn Ads Twitter Ads Pinterest Ads Snapchat Ads
  • No Google Ads certification required - Script works on the client side

Key Features

Multi-platform tracking

Support 9 ad platforms: Google Ads, Facebook Ads, TikTok Ads, Zalo Ads, Microsoft Ads, LinkedIn Ads, Twitter Ads, Pinterest Ads, Snapchat Ads + all UTM parameters.

Multi-domain

Works on every domain, no complex CORS configuration needed.

Behavior Tracking

Automatically tracks time on page, scroll depth, and user interactions.

Fraud Detection

Detects fraudulent clicks based on IP, device fingerprint and user behavior.

Session Management

Cookie-based session tracking (30 days) to track customer journey.

Lightweight & Fast

Lightweight script (< 10KB), does not affect page load speed.

1 Add Script to <head> Tag

Copy the code below and embed it in the <head> tag on ALL pages of your website:

tracking-script.html
<!-- NS Ads Xperts Tracking Script -->
<script src="https://www.nsadsxperts.com/js/nsadsxperts.js" async></script>

Installation guide by platform

Static HTML Website

Open the main HTML file (usually index.html or template file), find the <head> tag and paste the script before the closing </head> tag.

WordPress

Method 1: Use Insert Headers and Footers plugin

  1. Install the "Insert Headers and Footers" plugin from WordPress Plugin Directory
  2. Go to Settings → Insert Headers and Footers
  3. Paste the tracking script into the "Scripts in Header" field
  4. Click "Save"

Method 2: Edit theme header.php file

  1. Go to Appearance → Theme File Editor
  2. Select header.php file (or Theme Header)
  3. Find the <head> tag, paste the script before the closing </head> tag
  4. Click "Update File"
Note: It is recommended to use Method 1 (plugin) to avoid losing code when updating the theme.
How it works: The script automatically initializes and starts tracking when it detects ad parameters (gclid, fbclid, utm_source, etc.) in the URL. No additional configuration needed!

2 Check Integration

Enter the URL of the website where you integrated the script to check automatically:

The checker tool will:
  • Load your website content
  • Search for NS Ads Xperts script in HTML
  • Confirm the script is embedded correctly
  • Display detailed check results

Completion Checklist

Need Support?

If you encounter any issues during integration, please contact:

Related Articles