Comparing version 0.1.5 to 0.1.6
/*! | ||
* vue-piwik v0.1.5 | ||
* vue-piwik v0.1.6 | ||
* (c) 2018 Dennis Ruhe | ||
@@ -47,2 +47,6 @@ * Released under the MIT License. | ||
if (options.requireConsent) { | ||
piwik.requireConsent(); | ||
} | ||
// Register first page view | ||
@@ -54,2 +58,4 @@ piwik.trackPageView(); | ||
options.router.afterEach(function (to, from) { | ||
// Unfortunately the window location is not yet updated here | ||
// We need to make our own ulr using the data provided by the router | ||
var loc = window.location; | ||
@@ -56,0 +62,0 @@ var url = loc.protocol + '://' + loc.host + to.path; |
/*! | ||
* vue-piwik v0.1.5 | ||
* vue-piwik v0.1.6 | ||
* (c) 2018 Dennis Ruhe | ||
@@ -43,2 +43,6 @@ * Released under the MIT License. | ||
if (options.requireConsent) { | ||
piwik.requireConsent(); | ||
} | ||
// Register first page view | ||
@@ -50,2 +54,4 @@ piwik.trackPageView(); | ||
options.router.afterEach(function (to, from) { | ||
// Unfortunately the window location is not yet updated here | ||
// We need to make our own ulr using the data provided by the router | ||
var loc = window.location; | ||
@@ -52,0 +58,0 @@ var url = loc.protocol + '://' + loc.host + to.path; |
/*! | ||
* vue-piwik v0.1.5 | ||
* vue-piwik v0.1.6 | ||
* (c) 2018 Dennis Ruhe | ||
@@ -49,2 +49,6 @@ * Released under the MIT License. | ||
if (options.requireConsent) { | ||
piwik.requireConsent(); | ||
} | ||
// Register first page view | ||
@@ -56,2 +60,4 @@ piwik.trackPageView(); | ||
options.router.afterEach(function (to, from) { | ||
// Unfortunately the window location is not yet updated here | ||
// We need to make our own ulr using the data provided by the router | ||
var loc = window.location; | ||
@@ -58,0 +64,0 @@ var url = loc.protocol + '://' + loc.host + to.path; |
/*! | ||
* vue-piwik v0.1.5 | ||
* vue-piwik v0.1.6 | ||
* (c) 2018 Dennis Ruhe | ||
@@ -7,2 +7,2 @@ * Released under the MIT License. | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.VuePiwik=e.VuePiwik||{})}(this,function(e){"use strict";e.default=function(o,i){var e,n,t;void 0===i&&(i={}),(e=i,n=e.host+"/piwik.js",t=new Promise(function(e,t){var o=document.createElement("script");o.async=!0,o.defer=!0,o.src=n,(document.head||document.getElementsByTagName("head")[0]).appendChild(o),o.onload=e,o.onerror=t}),t.catch(function(e){console.error("Error loading script",e)}),t).then(function(){var e=i.host,t=i.siteId,n=window.Piwik.getTracker(e+"/piwik.php",t);(o.prototype.$piwik=n).trackPageView(),i.router&&i.router.afterEach(function(e,t){var o=window.location,i=o.protocol+"://"+o.host+e.path;n.setCustomUrl(i),n.trackPageView(e.name)})})},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.VuePiwik=e.VuePiwik||{})}(this,function(e){"use strict";e.default=function(o,n){var e,i,t;void 0===n&&(n={}),(e=n,i=e.host+"/piwik.js",t=new Promise(function(e,t){var o=document.createElement("script");o.async=!0,o.defer=!0,o.src=i,(document.head||document.getElementsByTagName("head")[0]).appendChild(o),o.onload=e,o.onerror=t}),t.catch(function(e){console.error("Error loading script",e)}),t).then(function(){var e=n.host,t=n.siteId,i=window.Piwik.getTracker(e+"/piwik.php",t);o.prototype.$piwik=i,n.requireConsent&&i.requireConsent(),i.trackPageView(),n.router&&n.router.afterEach(function(e,t){var o=window.location,n=o.protocol+"://"+o.host+e.path;i.setCustomUrl(n),i.trackPageView(e.name)})})},Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "vue-piwik", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Link your Piwik/Matomo installation", | ||
@@ -5,0 +5,0 @@ "author": "Dennis Ruhe <dennis@amazingsystems.nl>", |
@@ -12,2 +12,6 @@ import bootstrap from './bootstrap' | ||
if (options.requireConsent) { | ||
piwik.requireConsent() | ||
} | ||
// Register first page view | ||
@@ -19,2 +23,4 @@ piwik.trackPageView() | ||
options.router.afterEach((to, from) => { | ||
// Unfortunately the window location is not yet updated here | ||
// We need to make our own ulr using the data provided by the router | ||
const loc = window.location | ||
@@ -21,0 +27,0 @@ const url = loc.protocol + '://' + loc.host + to.path |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14538
211
1