Release - #6
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@stackmade/gtm-as-code@0.7.0
Minor Changes
8a084f7: Adds GA4 property and stream settings as config:
ga4.dataRetention,ga4.googleSignals, andga4.enhancedMeasurement.{scrollsEnabled, outboundClicksEnabled, siteSearchEnabled, videoEngagementEnabled, fileDownloadsEnabled, formInteractionsEnabled}(the last one scoped to thestream found via the new
ga4.streamWebsiteUrl, which looks up an existing web data stream by URLwithout creating one). These settings have no create/delete lifecycle, so
plan/drift/applydiff them directly against GA4's live property/stream state rather than treating them as resources.
e3d02a2: A tag's
trigger/exceptTriggercan now reference GTM's built-in triggers ("All Pages","Initialization - All Pages") by name, resolved to their fixed numeric GTM ids rather than looked
up in
gtm.triggers, since GTM never returns these fromtriggers.list. This unblocks agoogleTagtag firing on GTM's own initialization trigger, without pasting a numeric id intoconfig.
02309d2: Adds
ga4.audiences: GA4 audience definitions as create/update/archive resources, with arecursive
and/or/not/dimensionOrMetric/eventfilter tree.membershipDurationDays,exclusionDurationMode, andfilterClausesare immutable once created;planfails with anerror naming the field rather than attempting a PATCH GA4 would reject. Validation normalizes a
clause's filter into the
and-of-ors shape GA4 requires at the top level, so a single conditioncan be written as a bare leaf without knowing about that requirement.
42c5fcc: Adds
ga4.eventCreateRules/ga4.eventEditRules: GA4 event create/edit rules as create/update/delete resources, nested under the web data stream resolved from
ga4.streamWebsiteUrl. A createrule's config key is its
destinationEvent; an edit rule's config key is itsdisplayName. Bothsupport a real delete, unlike
ga4.audiences. An edit rule'sprocessingOrderis read-onlythrough the API and isn't part of config.
Adds
ga4.calculatedMetrics/ga4.channelGroups: GA4 calculated metrics and channel groups asproperty-scoped create/update/delete resources. A calculated metric's config key is its immutable
calculatedMetricId; a channel group's config key is itsdisplayName, likega4.audiences. Bothsupport a real delete.
Patch Changes
ga4.streamWebsiteUrllookup to ignore a trailing slash, and makes its "stream not found"error list the web stream URLs that actually exist on the property.
plan/applyalso now printwhich GA4 settings changed, not just that some did.
FAILED_PRECONDITIONerrors onga4.googleSignals: Google Signalsmust be activated on the property through the GA4 UI once before its state can be changed via
config. Documents the same requirement in the README.