=== AudienceRate Tracker ===
Contributors: audiencerate
Tags: analytics, tracking, audience, cdp
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AudienceRate Tracker sends page views and logged-in user identification events from WordPress to the AudienceRate CDP.


== Description ==

AudienceRate Tracker integrates WordPress websites with the AudienceRate Customer Data Platform.

The plugin loads the AudienceRate analytics script on the frontend and sends page view events with page metadata. When a visitor is logged in, the plugin also sends identify events with basic user traits such as user ID, email, first name, last name, and username.

The plugin requires a Workspace ID and Datasource ID from AudienceRate.


== Installation ==

1. Upload the plugin folder to the /wp-content/plugins/ directory, or install the plugin ZIP file from the WordPress admin area.
2. Activate the plugin through the Plugins screen in WordPress.
3. Go to AudienceRate in the WordPress admin menu.
4. Enter your Workspace ID, Datasource ID, and environment.
5. Save the settings.


== Frequently Asked Questions ==

= Does this plugin require an AudienceRate account? =

Yes. You need an AudienceRate Workspace ID and Datasource ID.

= Does this plugin track logged-in users? =

Yes. When a visitor is logged in, the plugin sends an identify event with basic WordPress user traits.

= Does this plugin add any visible frontend UI? =

No. The plugin only loads the analytics script and sends tracking events.


== External services ==

This plugin connects to AudienceRate services to load the analytics script and send tracking data to the AudienceRate Customer Data Platform.

The plugin loads the AudienceRate analytics JavaScript file from:

* https://cdn-app.audiencerate.dev/cdp-analytics.js

This script is loaded on the frontend only when the plugin is configured with a Workspace ID and Datasource ID.

The plugin sends tracking data to the AudienceRate ingestion API. Requests are sent to the following endpoint:

* https://ingestion.audiencerate.it/workspace/{workspaceId}

The data sent may include page view information, page URL, page path, page title, post ID, post type, logged-in status, anonymous visitor ID, user agent, IP address, and, for logged-in users, basic WordPress user traits such as user ID, email address, first name, last name, and username.

This data is sent when a frontend page is viewed and, for logged-in users, when an identify event is generated.

This service is provided by AudienceRate.

Privacy Policy: https://www.audiencerate.com/privacy-policy.html
Data Regulation Policy: https://www.audiencerate.com/data-regulation.html
Terms of Service: ADD_A_VALID_AUDIENCERATE_TERMS_URL_HERE


== Changelog ==

= 1.0.0 =
* Initial release.
