=== Trackum ===
Contributors: aravilo
Tags: google tag manager, gtm, tracking, analytics, consent
Requires at least: 5.7
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.6.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Switches on your Google Tag Manager container on your website and connects to your Trackum order with one click.

== Description ==

[Trackum](https://trackum.app) by ARAVILO sets up website tracking for small businesses: Google Tag Manager, Google Analytics 4, Google Ads and Meta, tested and privacy friendly.

This plugin does exactly one thing: it adds your Google Tag Manager container to every page of your website (in the head and right after the opening body tag).

* Click "Connect now" under Settings → Trackum and it fetches the container of your Trackum order. No copy and paste.
* You can also enter the container ID (GTM-…) by hand under Settings → Trackum.
* No tracking happens through the plugin itself. What is measured is configured in your own Google Tag Manager container, which belongs to you.

== External services ==

This plugin connects to the Trackum service (dienst.trackum.app) to look up the Google Tag Manager container that belongs to your website.

* When: only after an administrator asked for it, by clicking "Connect now" under Settings → Trackum or "Connect WordPress" in Trackum. If no container is found yet, it retries hourly for at most 7 days. Activating the plugin alone sends nothing. Once connected, no further requests are made.
* What is sent: the address of your website (home URL) and a random one-time code. The Trackum service then asks your website's REST API (/wp-json/trackum/v1/pruefung) whether exactly this code is active, to verify that the request really came from your website. The endpoint only answers yes or no for a code that is sent to it, never lists codes, and a confirmed code is used up immediately.
* Terms: https://trackum.app/agb
* Privacy policy: https://trackum.app/datenschutz

On the public pages of your website the plugin loads Google Tag Manager from www.googletagmanager.com, provided by Google.

* Terms: https://marketingplatform.google.com/about/analytics/tag-manager/use-policy/
* Privacy policy: https://policies.google.com/privacy

== Installation ==

1. Upload the plugin or install it from the plugin directory, then activate it.
2. Go to Settings → Trackum and click "Connect now".

== Frequently Asked Questions ==

= Do I need a Trackum order? =

For connecting automatically, yes. Without an order you can still enter any Google Tag Manager container ID by hand.

= What about consent? =

Use Google Tag Manager with Consent Mode and your cookie banner. Trackum configures this for you as part of the order.

== Changelog ==

= 1.6.0 =
* Connecting without a Trackum order no longer retries forever: the plugin stops asking after 7 days. "Connect now" starts again.
* Settings page: link to the free Trackum check for your website.
* Uninstalling also removes the strict privacy mode setting.

= 1.5.1 =
* Security: the verification endpoint no longer lists active one-time codes. It only confirms a code that is sent to it, and that code can be used once.

= 1.5.0 =
* Strict privacy mode (optional, only with the Trackum cookie banner): Google Tag Manager loads only after a visitor agrees.

= 1.4.0 =
* The plugin no longer contacts the Trackum service on activation. Connecting starts only when an administrator clicks "Connect now".
* Translations are delivered by translate.wordpress.org.

= 1.3.0 =
* Security hardening: a different container is never applied without confirmation, stricter checks of service responses, no caching of the verification code.

= 1.2.0 =
* English base texts with German translation.
* Information about external services.

= 1.1.0 =
* Connect directly from Trackum.

= 1.0.0 =
* First version.
