Skip to content

Latest commit

 

History

History
212 lines (123 loc) · 5.38 KB

CHANGELOG.md

File metadata and controls

212 lines (123 loc) · 5.38 KB

Next

diff

3.5.0

diff

  • Add nonce for CSP support (#116)

Vue 3 only

  • Handle optional dependency of vue-router (#122)

3.4.1

diff

  • Make event optional in DataLayerObject (#119)
    You may need to add some null checks when accessing the event.

3.4.0

diff

  • Provide possibility to override isInBrowserContext check (01f3651)
  • Significantly improve JSDoc (9edc30d)
  • Add vue-router as devDependency for type definition (593af25)

Vue 3 only

  • Fix vue-router access base from history options (e150975)
  • Do not track any views if navigation is aborted or cancelled (007608b)
    You can see logs in the browser console if you have enabled debug mode

3.3.2

diff

  • Pass queryParams correctly to script (#117)

3.3.1

diff

  • Hotfix for dataLayer

3.3.0

diff

  • Multiple GTM-container support (#114)

3.2.1

diff

  • Fix $gtm typing (#111)

3.2.0

diff

  • Usable gtm instance in composition API (#107)

3.1.1

diff

  • Load queryParams also when using the enable function (#102)

3.1.0

diff

  • Add compatibility for defer option for old browsers (#101)

3.0.0

diff

BREAKING CHANGE

  • There are incompatibilities in the TypeScript definitions of Vue 2.x and 3.x.
    That's why we're going to offer two releases for an indefinite period of time
    • 3.0.0 with a npm tag latest: Vue 3.x
    • 3.0.0-vue2 with a npm tag vue2: Vue 2.x
  • The class name of the $gtm instance changed from AnalyticsPlugin to VueGtmPlugin

Other Changes

  • Possibility to track additional event data
  • Throw error on invalid GTM-ID
  • Fix handling of multiple GTM-IDs
  • Project rewritten to TypeScript

2.3.4

diff

  • Add a more restrictive condition on hasScript function

2.3.3

diff

  • Fix enable method, after added defer feature
  • Update TypeScript declarations

2.3.2

diff

  • Fix: Cannot read property 'defer' of undefined" after enabling the plugin with a user interaction

2.3.1

diff

  • Add possibility to defer script
  • Add rest param to trackEvent typing
  • Multiple bug fixes

2.3.0

diff

  • Improve debugging
  • Add TypeScript declarations
  • Bugfix: Only load GTM Script if loadScript is set to true
  • Add query params to GTM script url

2.2.0

diff

  • Exposing data layer
  • Add config param for url of loading gtm.js

2.1.0

diff

  • Add config value for loading the script
  • Add the base path to the URL
  • Load script config option
  • Accepting ID as an array

2.0.1

diff

  • Add view name to event property
  • If no id provided do not insert tag manager script tag (dev environment)
  • Ignored views when load from ignoredViews

2.0.0

diff

  • Make GTM ID a config option
  • Changed handling of GTM ID

1.0.3

diff

  • Ability to enable/disable plugin
  • Call trackView on next tick

1.0.2

diff

  • Possibility to add additional dataLayer variables
  • Track fullPath

1.0.1

diff

  • Updated Google GTM inclusion method
  • Only run in browser. SSR compatibility

1.0.0

diff

  • Initial release