- Add
nonce
for CSP support (#116)
Vue 3 only
- Handle optional dependency of
vue-router
(#122)
- Make
event
optional inDataLayerObject
(#119)
You may need to add some null checks when accessing the event.
- Provide possibility to override
isInBrowserContext
check (01f3651) - Significantly improve JSDoc (9edc30d)
- Add
vue-router
asdevDependency
for type definition (593af25)
Vue 3 only
- Fix
vue-router
accessbase
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
- Pass queryParams correctly to script (#117)
- Hotfix for
dataLayer
- Multiple GTM-container support (#114)
- Fix $gtm typing (#111)
- Usable gtm instance in composition API (#107)
- Load
queryParams
also when using theenable
function (#102)
- Add
compatibility
fordefer
option for old browsers (#101)
- 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 time3.0.0
with a npm taglatest
: Vue 3.x3.0.0-vue2
with a npm tagvue2
: Vue 2.x
- The class name of the
$gtm
instance changed fromAnalyticsPlugin
toVueGtmPlugin
- Possibility to track additional event data
- Throw error on invalid
GTM-ID
- Fix handling of multiple
GTM-ID
s - Project rewritten to TypeScript
- Add a more restrictive condition on
hasScript
function
- Fix
enable
method, after addeddefer
feature - Update TypeScript declarations
- Fix: Cannot read property 'defer' of undefined" after enabling the plugin with a user interaction
- Add possibility to
defer
script - Add rest param to
trackEvent
typing - Multiple bug fixes
- Improve debugging
- Add TypeScript declarations
- Bugfix: Only load GTM Script if
loadScript
is set totrue
- Add query params to GTM script url
- Exposing data layer
- Add config param for url of loading gtm.js
- Add config value for loading the script
- Add the base path to the URL
- Load script config option
- Accepting ID as an array
- 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
- Make GTM ID a config option
- Changed handling of GTM ID
- Ability to
enable
/disable
plugin - Call
trackView
on next tick
- Possibility to add additional
dataLayer
variables - Track
fullPath
- Updated Google GTM inclusion method
- Only run in browser. SSR compatibility
- Initial release