Repository navigation
Fixed
- The noscript fallback rendered without a container ID.
x-gtm::no-scriptreadconfig('site.gtm.id'), but the package publishesconfig/gtm.phpand has nositenamespace — so the fallback iframe was emitted with an emptyid, and page views were never reported for visitors without JavaScript. It now readsconfig('gtm.id'), matchingx-gtm::script, which was unaffected.
If you rely on noscript tracking, this is worth upgrading for — the tag has been present but inert.
Internal
- Test coverage now exercises each component separately. The previous suite rendered both together and asserted the container ID appeared somewhere in the output, which the working script tag satisfied on its own — the broken iframe passed alongside it. Tests also cover the
enabledprop, thegtm.enabledconfig switch, and every combination of the two. - Corrected the test environment, which set
gtm.activewhile the components and config usegtm.enabled.
Added
- A
docs/directory with installation and usage pages, including an explicit reference for the two-level enable behaviour: tags render only when both theenabledprop and thegtm.enabledconfig value are true.
Full Changelog: v2.0.0...v2.0.1