=== ClickRampart – Click Fraud Protection for Google Ads ===
Contributors: meditrust
Tags: click fraud, google ads, ppc, bots, ad fraud
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Stop paying for bot clicks. ClickRampart scores every ad click and blocks fraudsters in your Google Ads account, without touching your theme.

== Description ==

Bots, competitors and click farms click on your ads and drain your budget. ClickRampart checks every visit that comes from an ad, gives it a fraud score from 0 to 100, and excludes fraudsters from your Google Ads account every 10 minutes.

This plugin connects your WordPress site to your ClickRampart account in one step: paste your site code, and the ClickRampart tag is added to every page.

**What the plugin does**

* Adds the ClickRampart tag to every page of your site, loaded asynchronously so it does not slow your pages down.
* Ignores your own visits while you are logged in to WordPress.
* Keeps cache and optimisation plugins from delaying the tag (WP Rocket, LiteSpeed Cache, Autoptimize, SiteGround Optimizer, Perfmatters, FlyingPress, WP Meteor).
* Shows a "control room" in your admin: money protected this week, a protection level out of 100, and the latest ad clicks.
* Adds a small widget to your WordPress dashboard.

**What ClickRampart does**

* Spots bots, VPNs, data centres, repeat clicks and instant exits.
* Never blocks a real customer: phone, WhatsApp and form contacts protect the visitor.
* Blocks fraudsters automatically in Google Ads (all campaigns at once).
* Sends an alert when an attack starts and a short summary every Monday.

A ClickRampart account is required. You can join at [clickrampart.com](https://clickrampart.com).

== External services ==

This plugin connects to ClickRampart (https://clickrampart.com), a click fraud protection service run by ClickRampart. It only does so once you have pasted your site code in Settings → ClickRampart.

1. **The ClickRampart tag** (`https://clickrampart.com/r.js`) is loaded on the public pages of your site. When a visitor arrives from an ad, the tag sends to ClickRampart: the visit's IP address, browser and device type, the page address and the ad click identifier, the time spent and whether the visitor scrolled, called, opened WhatsApp or sent a form. No cookie is set. IP addresses are erased after 30 days. The tag address includes your public site key and the plugin version number.
2. **Your site figures** (`https://clickrampart.com/api/wp/site`) are read when you open the ClickRampart page or the dashboard widget in your admin, to show your clicks and protection status. This request sends your site code and the plugin version number.

ClickRampart legal notice: https://clickrampart.com/mentions-legales
ClickRampart privacy policy: https://clickrampart.com/confidentialite

== Installation ==

1. Install and activate the plugin.
2. In ClickRampart, open your site → Installation → "WordPress plugin" and copy the site code.
3. In WordPress, go to Settings → ClickRampart, paste the code and click "Turn on the shield".

That's it: the tag is on every page and ClickRampart checks it right away.

== Frequently Asked Questions ==

= Do I need a ClickRampart account? =

Yes. The plugin adds the tag and shows your figures; the fraud detection and blocking happen in your ClickRampart account.

= Will it slow down my site? =

No. The tag is small and loads asynchronously, after your page.

= Does it work with my cache plugin? =

Yes. The plugin tells the most common cache and optimisation plugins not to delay the tag, and clears their cache when you save your code.

= Do my own visits count? =

No. While you are logged in to WordPress with a role that can edit posts, the tag is not added.

= Does the tag set cookies? =

No. Fighting ad fraud is a legitimate interest, and the tag does not need to wait for your cookie banner.

= How do I remove it? =

Click "Disconnect this site" on the plugin page, or deactivate the plugin: the tag is removed at once.

== Screenshots ==

1. Before connection: paste your site code to turn on the shield.
2. The control room: money protected, protection level and latest ad clicks.
3. The WordPress dashboard widget.

== Changelog ==

= 1.2.0 =
* Ready for WordPress.org: English texts, French translation included.
* The tag is loaded with the WordPress script system (async).
* ClickRampart now knows which plugin version you use and tells you when an update is available.

= 1.1.0 =
* New "control room" page: budget protected, click radar, protection level out of 100.
* Automatic tag check as soon as the code is pasted.

= 1.0.0 =
* First version.

== Upgrade Notice ==

= 1.2.0 =
English texts with French translation, and update alerts in your ClickRampart account.
