W3Lab Tracking 1.1.1 - must-use plugin for WordPress
====================================================

This archive has NO wrapper folder. Unzip it and you get exactly the two
items that belong in wp-content/mu-plugins/ :

    w3lab-tracking.php     <- loader
    w3lab-tracking/        <- folder

Install / update
----------------

1. On the server, DELETE the old w3lab-tracking.php and the old
   w3lab-tracking/ folder first. Settings live in the database, so
   nothing is lost.
2. Upload both items into wp-content/mu-plugins/.
3. Check the page source of the site - it must say:

       <!-- W3Lab Tracking v1.1.1 -->

   If it still shows an older version, the files did not overwrite, or the
   folder you uploaded to is not the one serving the site. Compare with
   Tools > Site Health > Info > Directories and sizes.
4. Purge any page cache (LiteSpeed / Cloudflare) after replacing the files.

Note: this is a must-use plugin. It is NOT installed through
Plugins > Add New > Upload Plugin - that route does not work for mu-plugins.
There is no activation; it runs as soon as the files are in place.

Environment settings
--------------------

* "This is the production site" - on by default. Untick on staging.
  The site then reports site_env = staging and the GTM exception trigger
  stops the tags, but the container still loads so GTM Preview works.

* "Do not load containers outside production" - off by default. Tick it
  when a staging site must print nothing at all: no GTM, no GA4, no Pixel,
  no tracking.js. GTM Preview is then unusable on that site.

What's new in 1.1.1
-------------------
  - "Do not load containers outside production" switch

1.1.0
  - Meta Pixel goes through GTM by default; the ID field is locked otherwise
  - "This is the production site" on by default, warnings in both directions
  - "Booking engine domains" renamed to "Tracking domains"
  - Everything (admin UI, code comments, docs, GTM container) in English

Inside w3lab-tracking/
----------------------
  README.md            full documentation
  gtm/*.json           ready-made GTM container to import
  tests/fixture.html   self-running test page, open it in a browser

On production, tests/ and gtm/ can be deleted.
