tagreeve 0.6.0-rc.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
Agent-first testing for tags and consent. Tagreeve plays a visitor in a real browser, records every tracking hit the site sends, and checks the result against what you expect. Web tag reports (which GTM web tags fired) come from a GTM template you install. Server tag reports are planned.
|
|
11
11
|
|
|
12
|
-
> **Status: 0.6 (`0.6.0
|
|
12
|
+
> **Status: 0.6 (`0.6.0`).** Tagreeve plays a visitor in Chromium, records and decodes hits, answers the consent banner, checks YAML expectations and writes a JSONL record. 0.3 adds rules on payload fields and cookies, a `deniedIdentifiers` check, `tagreeve suite`, an HTML report, a Done control for handoff steps, role-based locators and a `select` step. 0.4 adds handoffs that end by themselves, an opt-in test payment step, baselines, a viewport option and fake identities by country. 0.5 adds `--server-container`, which runs your own server container in Docker and records what it sends to each vendor, a Conversions API decoder, several stores in one suite and platform hosts for Shopify. 0.6.0-rc.1 adds path defaults, `tagreeve init`, `tagreeve/config.yml`, `--label`, default baseline paths and `suite --baseline`, exact links between server container calls and browser hits by client ID, and the frame of each `dataLayer` push. 0.6.0-rc.2 adds web tag reports, `tagreeve template web`, `tag` rules, `expectedTags`, masked `dataLayer` push shapes in `diff` and baselines, and the `consentModeSetup` check. 0.6.0-rc.3 fixes the reporter in real GTM, keeps the `dataLayer` hook working when a page replaces `push`, adds push kinds and a `dataLayerIncomplete` flag, and sends handoff text to stderr. 0.6.0 is rc.3 with the release prep and no code change; it was field-tested on a real store with a real GTM web container in a workspace preview (rc.2 and rc.3). The rest of this README describes where Tagreeve is going, and marks what is not built yet. The design is in [docs/design.md](docs/design.md). Feedback is welcome in issues.
|
|
13
13
|
>
|
|
14
14
|
> **In 0.1:** `tagreeve run` with `stub` and `live` network modes; consent epochs, with withdrawals labelled apart from first rejects; seeded fake identities, hash checks and leak detection; decoders for GA4, Google Ads, Meta, Stape custom loader and a minimal server-container data client; banner handling through autoconsent; expectations; JSONL output.
|
|
15
15
|
>
|
|
@@ -17,6 +17,8 @@ Agent-first testing for tags and consent. Tagreeve plays a visitor in a real bro
|
|
|
17
17
|
>
|
|
18
18
|
> **In 0.3:** `body.has` and `body.only` rules on the field names of a hit; `cookie` rules; a `deniedIdentifiers` check that fails when an identifier goes out on a denied hit; `tagreeve suite` runs a folder of scenarios against several GTM builds; `tagreeve report` writes an HTML report of one run or a suite; a Done button in the handoff window; `click` and `wait` by role and name or from a list of selectors; a `select` step; the `server` network mode; record schema version 2. `deniedIdentifiers` fails by default, so a run that passed in 0.2 can exit 1. See [CHANGELOG.md](CHANGELOG.md).
|
|
19
19
|
>
|
|
20
|
+
> **In 0.6.0:** everything in the 0.6.0 release candidates below, with no code change after rc.3. `npm i -g tagreeve` installs it. The record stays at schema version 5. To upgrade from 0.5.0, read "Upgrading from 0.5.0" in [CHANGELOG.md](CHANGELOG.md). What is still open is in the same file under "Known in 0.6.0".
|
|
21
|
+
>
|
|
20
22
|
> **In 0.6.0-rc.3:** the reporter template sends tag IDs as strings, so real GTM reports are no longer recorded as invalid, and a 0.6.0-rc.2 template still works; the `dataLayer` hook leaves `push` as the page assigned it, and a page that replaces `window.dataLayer` after a Google loader request gets a `dataLayerReassigned` flag; a frame whose `dataLayer` holds pushes the run did not record gets a `dataLayerIncomplete` flag; push shapes have a `kind`, `gtag` or `object`; `consentModeSetup` names the `gcd` letters; the Result line counts baseline warnings; handoff text goes to stderr, so `--json` stdout is only JSON; `wait` with a `url` takes a `timeout`. The record stays at schema version 5. What is still open is in [CHANGELOG.md](CHANGELOG.md) under "Known in 0.6.0-rc.3".
|
|
21
23
|
>
|
|
22
24
|
> **In 0.6.0-rc.2:** the run record is schema version 5 and holds web tag reports from the `tagreeveTagReport` binding; `tagreeve template web` prints the reporter's GTM template; `tag` rules in `must` and `mustNot` and `expectedTags` in the GTM override file check which tags fired; the `--json` summary and the text summary have a `dataLayer` section; `diff` and `baseline` compare masked push shapes, with `diff --event-map`; `options.dataLayerNames` hooks a `dataLayer` with a custom name; the `consentModeSetup` check warns on a Consent Mode signal that was never set; `tagreeve init` writes `tagreeve/config.yml`; and a server container call that is not an exact link records why. What is still open is in [CHANGELOG.md](CHANGELOG.md) under "Known in 0.6.0-rc.2".
|
|
@@ -86,15 +88,15 @@ tagreeve run scenarios/undecided-visitor.yml --site https://staging.example.com
|
|
|
86
88
|
## Install
|
|
87
89
|
|
|
88
90
|
```bash
|
|
89
|
-
npm i -g tagreeve
|
|
91
|
+
npm i -g tagreeve
|
|
90
92
|
tagreeve install-browser
|
|
91
93
|
```
|
|
92
94
|
|
|
93
|
-
Node 22.18 or later. `npm i -g tagreeve
|
|
95
|
+
Node 22.18 or later. `npm i -g tagreeve` installs the newest release. Other ways to install, from a git tag or a tarball, are in [docs/cli.md](docs/cli.md).
|
|
94
96
|
|
|
95
97
|
## Quick start
|
|
96
98
|
|
|
97
|
-
1. `npm i -g tagreeve
|
|
99
|
+
1. `npm i -g tagreeve`
|
|
98
100
|
2. `tagreeve install-browser`. In a project folder, `tagreeve init` makes `tagreeve/scenarios/` and `tagreeve/baselines/`, writes a starter `tagreeve/config.yml` and keeps `tagreeve/runs/` out of git.
|
|
99
101
|
3. Write `scenario.yml`:
|
|
100
102
|
|