Web
WordPress plugin
Add trackd.one to WordPress without code — with optional WooCommerce revenue, form and download events, WP Consent API and proxy mode.
The plugin trackd.one – Privacy-friendly Analytics adds the tracking script to your WordPress site. You need no code and no theme edits. Every extra feature can be switched on separately. Only excluding logged-in administrators and editors and WooCommerce revenue (if WooCommerce is installed) are on by default.
Installation
- Download the plugin: trackd-analytics.zip. Until it is listed in the WordPress plugin directory, this is the only download. Translations (e.g. German) arrive automatically via wordpress.org language packs once it is listed.
- Install it in WordPress under Plugins → Add New → Upload Plugin and activate it.
- Open Settings → trackd.one and enter your Website ID. You find it in the dashboard under Settings → Install → WordPress.
Done: from now on every pageview is counted. To check that data arrives, open Realtime in the dashboard or the connection check under Settings → Install.
Settings
Under Settings → trackd.one, a status card at the top shows whether the site is being measured and which features are on. The settings are split into tabs: General, Events & shop, Privacy, Dashboard widget, Proxy mode and Advanced. Saving always saves all tabs. With an API key, the status card also checks the connection: whether the Website ID exists, whether its domain matches this site and how many pageviews arrived in the last 24 hours (“Check connection” asks again).
| Setting | Meaning |
|---|---|
| Website ID | ID of your property (required) |
| Server URL | default https://trackd.one; only change it for self-hosting or testing. Must use https:// (http only for localhost/127.0.0.1); servers in private networks only with define( 'TRACKD_ALLOW_LOCAL_SERVER', true ); in wp-config.php. On multisite only network admins can change it. The plugin never follows redirects, so keys are never sent to another host. |
| Exclude roles | logged-in users with these roles are not counted (default: Administrator, Editor) |
| Exclude pages | one path per line that is not tracked; * matches everything below, e.g. /my-account/* |
| Web Vitals | loads the optional Web Vitals module (data-vitals="true") |
| Heatmaps | records click positions for heatmaps (data-heatmap) |
The script is not loaded in previews, the admin area, the Customizer, feeds and REST requests.
Privacy policy: the “Privacy” tab offers a suggested text about trackd.one to copy (including order data when WooCommerce revenue is on). The same text is in Settings → Privacy → Policy guide. It is a suggestion, not legal advice.
WooCommerce revenue
When WooCommerce is active, the plugin sends one purchase event on the order confirmation page with total, currency, order number and order lines (SKU or product ID, name, category, price, quantity – no customer data). Paid orders (status “processing” or “completed”) count as revenue right away; unpaid ones (e.g. bank transfer, “pending” or “on hold”) show as pending. Failed and cancelled orders are not reported. Reloading the page does not count the order twice.
Payments, cancellations, refunds: enter a key with “May change order status” enabled (trackd.one → Account → API keys) in the API key field. The plugin then reports these changes automatically in the background. Without such a key you can change the status in the dashboard under Revenue → Orders.
Shop funnel: on product pages the plugin sends view_item, on “add to cart” add_to_cart and on the checkout begin_checkout – they feed the conversion rate, cart abandonment and product report. Revenue shows up in the dashboard under Revenue (see Revenue tracking). You can switch this off in the settings.
Ignore test orders: enter billing e-mail addresses or whole domains (@my-agency.com) whose orders should not be reported, e.g. your own test purchases. The comparison happens on your site; the addresses are never sent to trackd.one.
Forms, downloads and outbound links
Optionally the plugin sends custom events:
| Event | Trigger | Data |
|---|---|---|
form_submit |
successfully sent form (Contact Form 7, WPForms, Elementor Pro) | form: form identifier, e.g. cf7-12, wpforms-34, elementor-Contact |
file_download |
click on a link to a file (PDF, ZIP, DOCX, XLSX, MP3, MP4 …) | file: host and path without query |
outbound_link |
click on a link to another domain | url: host and path without query |
Form contents are never sent. All three event types are off by default.
Consent (WP Consent API)
trackd.one sets no cookies and stores nothing on the device. Whether you still ask for consent is your decision as the site operator. If you use a consent plugin that supports the WP Consent API, you can switch on Load only after consent. The script is then loaded once the statistics category is allowed, also later without reloading the page. If no consent plugin has registered a consent type yet, the plugin loads nothing at all in this mode, to be safe.
Proxy mode (against ad blockers)
Some ad blockers block requests to analytics services. In proxy mode everything runs through your own domain: the plugin serves the script at /wp-json/tdo/v1/s/t.js and forwards events from /wp-json/tdo/v1/s/api/collect to trackd.one server-side.
Proxy mode needs HTTPS: on a plain http:// site the script keeps loading directly from trackd.one, and the plugin shows “Needs HTTPS”. If TLS ends at a load balancer and WordPress only sees http://, enable it with add_filter( 'trackd_proxy_https', '__return_true' );.
To set it up:
- Create a proxy key in the dashboard under Settings → Install → WordPress. It is shown only once.
- Enter it in the plugin under Proxy key and switch on proxy mode.
Good to know:
- IP addresses: while forwarding, your server briefly sees the visitor’s IP address and passes it on to trackd.one. As always, we only use it for the daily rotating visitor hash and never store it. Mention the forwarding in your privacy policy.
- Behind a proxy or CDN (e.g. Cloudflare, a load balancer), WordPress only sees that service’s address. Then switch on Site is behind a proxy/CDN.
CF-Connecting-IPis only trusted for requests from Cloudflare’s addresses; otherwise the plugin uses the lastX-Forwarded-Forentry (orX-Real-IP). Only switch this on if every request passes through that proxy: otherwise visitors could forge these headers. - Rate limit: the plugin forwards at most 120 requests per minute per visitor. With a persistent object cache (Redis, Memcached …) it counts there under a salted hash of the IP address; without one it writes nothing to the database per pageview and only pauses an IP that trackd.one itself throttled, for one minute. It stores no IP addresses.
- Resilient: if trackd.one cannot be reached, your pages stay fast: short timeouts, tracking requests are dropped for a minute and the script is served from the last good copy.
- Country: the country only arrives if your server knows a country header (e.g.
CF-IPCountryon Cloudflare) and Site is behind a proxy/CDN is enabled. Otherwise the country stays unknown in your statistics — so nobody can fake a country on a directly reachable site. - Revoking: you can revoke a key in the dashboard at any time. trackd.one then rejects forwarded requests with that key (
403) until you enter a new one. Up to 5 keys per property. A revoked or invalid key (e.g. after a team change or website transfer) shows an admin notice in WordPress.
Technical details (headers, limits) are in the API documentation.
Dashboard widget (Pro and above)
If you want, the plugin shows the last 7 days in the WordPress dashboard: visitors, pageviews and the top 5 pages. The widget uses the read API and needs an API key (dashboard → Account → API keys, Pro plan and above). Only users with the manage_options capability see it. Data is cached for 10 minutes.
Uninstalling
When you delete the plugin, WordPress removes all plugin settings. The “revenue reported” marker on WooCommerce orders stays. It belongs to the order history and prevents duplicate reports if you reinstall the plugin later.
Ready in minutes
Start the 7-day free trial (no credit card), add your website or app, copy the snippet.