Socket
Socket
Sign inDemoInstall

vue-matomo

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-matomo - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

4

dist/vue-matomo.common.js
/*!
* vue-matomo v0.3.0
* vue-matomo v0.3.1
* (c) 2018 Dennis Ruhe

@@ -54,3 +54,3 @@ * Released under the MIT License.

this.isExternalUrl(e.target.href)) {
this.matomo.trackLink(e.target.href);
this.matomo.trackLink(e.target.href, 'link');
}

@@ -57,0 +57,0 @@ };

/*!
* vue-matomo v0.3.0
* vue-matomo v0.3.1
* (c) 2018 Dennis Ruhe

@@ -50,3 +50,3 @@ * Released under the MIT License.

this.isExternalUrl(e.target.href)) {
this.matomo.trackLink(e.target.href);
this.matomo.trackLink(e.target.href, 'link');
}

@@ -53,0 +53,0 @@ };

/*!
* vue-matomo v0.3.0
* vue-matomo v0.3.1
* (c) 2018 Dennis Ruhe

@@ -56,3 +56,3 @@ * Released under the MIT License.

this.isExternalUrl(e.target.href)) {
this.matomo.trackLink(e.target.href);
this.matomo.trackLink(e.target.href, 'link');
}

@@ -59,0 +59,0 @@ };

/*!
* vue-matomo v0.3.0
* vue-matomo v0.3.1
* (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.VueMatomo=e.VueMatomo||{})}(this,function(e){"use strict";var c=function(e){this.matomo=e};c.prototype.bind=function(e){e.addEventListener("click",this.handle.bind(this))},c.prototype.extractDomain=function(e){return e.replace("http://","").replace("https://","").split("/")[0]},c.prototype.handle=function(e){"a"===e.target.nodeName.toLowerCase()&&this.isExternalUrl(e.target.href)&&this.matomo.trackLink(e.target.href)};var a={requireConsent:!(c.prototype.isExternalUrl=function(e){return console.log("url "+e),this.extractDomain(location.href)!==this.extractDomain(e)}),trackInitialView:!0,trackerFileName:"piwik"};e.default=function(r,e){void 0===e&&(e={});var t,n,o,i=Object.assign({},a,e);(t=i,n=t.host+"/"+t.trackerFileName+".js",o=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}),o.catch(function(e){var t="[vue-matomo] An error occurred trying to load "+e.target.src+". If the file exists you may have an ad- or trackingblocker enabled.";console.error(t)}),o).then(function(){var e=i.host,t=i.siteId,o=i.trackerFileName,a=window.Piwik.getTracker(e+"/"+o+".php",t);r.prototype.$piwik=a,r.prototype.$matomo=a,i.requireConsent&&a.requireConsent(),i.trackInitialView&&a.trackPageView(),new c(a).bind(document),i.router&&i.router.afterEach(function(e,t){var o=window.location,r=o.protocol;":"!==r.slice(-1)&&(r+=":");var n=r+"//"+o.host+e.path;a.setCustomUrl(n),a.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.VueMatomo=e.VueMatomo||{})}(this,function(e){"use strict";var c=function(e){this.matomo=e};c.prototype.bind=function(e){e.addEventListener("click",this.handle.bind(this))},c.prototype.extractDomain=function(e){return e.replace("http://","").replace("https://","").split("/")[0]},c.prototype.handle=function(e){"a"===e.target.nodeName.toLowerCase()&&this.isExternalUrl(e.target.href)&&this.matomo.trackLink(e.target.href,"link")};var a={requireConsent:!(c.prototype.isExternalUrl=function(e){return console.log("url "+e),this.extractDomain(location.href)!==this.extractDomain(e)}),trackInitialView:!0,trackerFileName:"piwik"};e.default=function(r,e){void 0===e&&(e={});var t,n,o,i=Object.assign({},a,e);(t=i,n=t.host+"/"+t.trackerFileName+".js",o=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}),o.catch(function(e){var t="[vue-matomo] An error occurred trying to load "+e.target.src+". If the file exists you may have an ad- or trackingblocker enabled.";console.error(t)}),o).then(function(){var e=i.host,t=i.siteId,o=i.trackerFileName,a=window.Piwik.getTracker(e+"/"+o+".php",t);r.prototype.$piwik=a,r.prototype.$matomo=a,i.requireConsent&&a.requireConsent(),i.trackInitialView&&a.trackPageView(),new c(a).bind(document),i.router&&i.router.afterEach(function(e,t){var o=window.location,r=o.protocol;":"!==r.slice(-1)&&(r+=":");var n=r+"//"+o.host+e.path;a.setCustomUrl(n),a.trackPageView(e.name)})})},Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "vue-matomo",
"version": "0.3.0",
"version": "0.3.1",
"description": "Link your Piwik/Matomo installation",

@@ -5,0 +5,0 @@ "author": "Dennis Ruhe <dennis@amazingsystems.nl>",

@@ -17,3 +17,3 @@ export default class ClickListener {

this.isExternalUrl(e.target.href)) {
this.matomo.trackLink(e.target.href)
this.matomo.trackLink(e.target.href, 'link')
}

@@ -20,0 +20,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc