Skip to content

Commit d06cb43

Browse files
authored
Merge pull request #4 from StackMade/changeset-release/main
Release
2 parents 052149c + 9fa3329 commit d06cb43

4 files changed

Lines changed: 20 additions & 23 deletions

File tree

.changeset/silly-actors-yell.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/thirty-plums-argue.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# @stackmade/gtm-as-code
22

3+
## 0.5.0
4+
5+
### Minor Changes
6+
7+
- 052149c: Extend protected resources to GA4. `protected: true` on a `ga4.dimensions`/`metrics`/`keyEvents`
8+
entry now needs `--allow-destroy-protected` before `apply` deletes it, tracked in
9+
`.analytics/state.json` since GA4 has no field of its own to stamp the flag into (GTM resources
10+
already worked this way).
11+
- 694b6b8: Add consent settings, consent/PII validation, and protected resources.
12+
13+
- `gtm.tags.*.consent` and `events.*.consent` map to GTM's per-tag `consentSettings`, and a bare
14+
`consentInit` trigger type is now supported for firing a default-consent tag before everything
15+
else.
16+
- Validation now fails when a `ga4Event`/`googleTag` tag, or an `events.*` entry (which compiles
17+
to one), has no `consent` block, and when an event parameter name suggests personal data
18+
(`email`, `phone`, `address`, and similar).
19+
- `protected: true` on a GTM resource requires `--allow-destroy-protected`, on top of
20+
`--allow-destroy`, before `apply` deletes it. GA4 resources aren't covered yet.
21+
322
## 0.4.0
423

524
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackmade/gtm-as-code",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "GTM & GA4 as code — define Google Tag Manager and Analytics 4 config in YAML, plan/apply like Terraform.",
55
"license": "MIT",
66
"type": "module",

0 commit comments

Comments
 (0)