@osovitny/anatoly 2.0.38 → 2.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/osovitny-anatoly.umd.js +49 -1
- package/bundles/osovitny-anatoly.umd.js.map +1 -1
- package/bundles/osovitny-anatoly.umd.min.js +2 -2
- package/bundles/osovitny-anatoly.umd.min.js.map +1 -1
- package/esm2015/lib/core/core.module.js +4 -2
- package/esm2015/lib/core/services/google-analytics.service.js +48 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/osovitny-anatoly.js +49 -3
- package/fesm2015/osovitny-anatoly.js.map +1 -1
- package/lib/core/services/google-analytics.service.d.ts +8 -0
- package/osovitny-anatoly.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1700,6 +1700,52 @@
|
|
|
1700
1700
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] }
|
|
1701
1701
|
]; };
|
|
1702
1702
|
|
|
1703
|
+
/*
|
|
1704
|
+
<file>
|
|
1705
|
+
Project:
|
|
1706
|
+
@osovitny/anatoly
|
|
1707
|
+
|
|
1708
|
+
Authors:
|
|
1709
|
+
Vadim Osovitny
|
|
1710
|
+
Anatoly Osovitny
|
|
1711
|
+
|
|
1712
|
+
Created:
|
|
1713
|
+
29 Щсе 2020
|
|
1714
|
+
|
|
1715
|
+
Version:
|
|
1716
|
+
1.0
|
|
1717
|
+
|
|
1718
|
+
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
1719
|
+
</file>
|
|
1720
|
+
*/
|
|
1721
|
+
var GoogleAnalyticsService = /** @class */ (function () {
|
|
1722
|
+
function GoogleAnalyticsService(router) {
|
|
1723
|
+
this.router = router;
|
|
1724
|
+
}
|
|
1725
|
+
GoogleAnalyticsService.prototype.subscribe = function () {
|
|
1726
|
+
this.subscription = this.router.events.subscribe(function (event) {
|
|
1727
|
+
if (event instanceof router.NavigationEnd) {
|
|
1728
|
+
if (window.ga) {
|
|
1729
|
+
window.ga('set', 'page', event.urlAfterRedirects);
|
|
1730
|
+
window.ga('send', 'pageview');
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
});
|
|
1734
|
+
};
|
|
1735
|
+
GoogleAnalyticsService.prototype.unsubscribe = function () {
|
|
1736
|
+
if (this.subscription) {
|
|
1737
|
+
this.subscription.unsubscribe();
|
|
1738
|
+
}
|
|
1739
|
+
};
|
|
1740
|
+
return GoogleAnalyticsService;
|
|
1741
|
+
}());
|
|
1742
|
+
GoogleAnalyticsService.decorators = [
|
|
1743
|
+
{ type: i0.Injectable }
|
|
1744
|
+
];
|
|
1745
|
+
GoogleAnalyticsService.ctorParameters = function () { return [
|
|
1746
|
+
{ type: router.Router }
|
|
1747
|
+
]; };
|
|
1748
|
+
|
|
1703
1749
|
var AnatolyCoreModule = /** @class */ (function () {
|
|
1704
1750
|
function AnatolyCoreModule(injector, parentModule) {
|
|
1705
1751
|
this.injector = injector;
|
|
@@ -1717,7 +1763,8 @@
|
|
|
1717
1763
|
NotificationService,
|
|
1718
1764
|
AppContextService,
|
|
1719
1765
|
LoadingService,
|
|
1720
|
-
DigitalMarketingService
|
|
1766
|
+
DigitalMarketingService,
|
|
1767
|
+
GoogleAnalyticsService
|
|
1721
1768
|
],
|
|
1722
1769
|
},] }
|
|
1723
1770
|
];
|
|
@@ -3315,6 +3362,7 @@
|
|
|
3315
3362
|
exports.FroalaEditorModuleWithProviders = FroalaEditorModuleWithProviders;
|
|
3316
3363
|
exports.FroalaViewModuleWithProviders = FroalaViewModuleWithProviders;
|
|
3317
3364
|
exports.GlobalErrorHandler = GlobalErrorHandler;
|
|
3365
|
+
exports.GoogleAnalyticsService = GoogleAnalyticsService;
|
|
3318
3366
|
exports.Guid = Guid;
|
|
3319
3367
|
exports.HtmlEditorComponent = HtmlEditorComponent;
|
|
3320
3368
|
exports.IdleService = IdleService;
|