Skip to content

v2.0.1

Latest

Choose a tag to compare

@awcodes awcodes released this 16 Aug 17:20
· 1 commit to main since this release

Fixed

  • The noscript fallback rendered without a container ID. x-gtm::no-script read config('site.gtm.id'), but the package publishes config/gtm.php and has no site namespace — so the fallback iframe was emitted with an empty id, and page views were never reported for visitors without JavaScript. It now reads config('gtm.id'), matching x-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 enabled prop, the gtm.enabled config switch, and every combination of the two.
  • Corrected the test environment, which set gtm.active while the components and config use gtm.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 the enabled prop and the gtm.enabled config value are true.

Full Changelog: v2.0.0...v2.0.1