Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# [5.0.0](v4.1.0...v5.0.0) (2023-07-03) ### Bug Fixes * **schematics:** correctly remove legacy packages during install ([5cc6a8c](5cc6a8c)) * **tracker:** add missing public exports ([27973ca](27973ca)) ### Code Refactoring * merge `@ngx-matomo/router` into main package ([dca634a](dca634a)) * rename library to `ngx-matomo-client` ([be8f65e](be8f65e)) * **router:** remove `MatomoRouteDataInterceptor` and `MatomoRouteInterceptorBase` constructor arguments ([5c5086d](5c5086d)) * **router:** replace `init()` method with `initialize()` for naming consistency ([f82c013](f82c013)) * **tracker:** rename `NgxMatomoTrackerModule` to `NgxMatomoModule` ([96c8f2e](96c8f2e)) ### Features * add new `NgModule`-free providers ([2dbe82d](2dbe82d)) * **router:** allow custom key for route data lookup ([936176d](936176d)) * **schematics:** support new providers-style setup ([057223a](057223a)) * **tracker, router:** add support for pseudo-clicks with `enableLinkTracking` config property ([641a255](641a255)) * **tracker:** add `disableBrowserFeatureDetection` and `enableBrowserFeatureDetection` methods ([d462941](d462941)) * **tracker:** add `getExcludedReferrers` and `setExcludedReferrers` methods ([b725de8](b725de8)) * **tracker:** add `getRememberedCookieConsent` method ([7504381](7504381)) * **tracker:** add public export for `MATOMO_DIRECTIVES` ([f0362e9](f0362e9)) * **tracker:** allow `inject` calls in script factory ([bb2aae0](bb2aae0)) * **tracker:** allow route tracking customization using route data ([480f30e](480f30e)) * **tracker:** automatically enable or disable initial page view tracking ([eeccb3e](eeccb3e)) * **tracker:** make Matomo directives standalone ([27c2ecc](27c2ecc)) ### Breaking changes * **tracker:** Configuration option `trackAppInitialLoad` is now `true` by default, unless router feature is enabled (it previously was always `false` by default). For applications with router enabled, nothing changes. It can still be manually configured like before. This should not affect most applications, because tracking initial page view is not recommended when router feature is enabled. * **router:** `MatomoRouteDataInterceptor` and `MatomoRouteInterceptorBase` constructors are now argument-less. They now require to be instantiated in an injection context instead. * **tracker, router:** `enableLinkTracking` now don't enable pseudo-click tracking by default after each page view. This is consistent with the default Matomo behavior. To restore previous behavior, set `enableLinkTracking` configuration property to `'enable-pseudo'`. * Library's npm package has been renamed to `ngx-matomo-client`. Legacy packages should not be used anymore: please migrate all imports from `@ngx-matomo/tracker` and `@ngx-matomo/router` to `ngx-matomo-client` instead. * Package `@ngx-matomo/router` is no longer necessary. It should be removed from your project. - `NgxMatomoRouterModule` is now available from the main library package - All your imports should be migrated and imported from the main library package ### Deprecations * **router:** Method `MatomoRouter.init()` has been deprecated, use `MatomoRouter.initialize()` instead * **tracker:** `NgxMatomoTrackerModule` is deprecated, use `NgxMatomoModule` instead
- Loading branch information