Comparing version 1.15.0 to 1.15.1
@@ -222,2 +222,6 @@ import Vue from 'vue'; | ||
var assignGlobalProperty = function assignGlobalProperty(id, value) { | ||
if (!isBrowser()) { | ||
return; | ||
} | ||
window["ga-disable-".concat(id)] = value; | ||
@@ -267,2 +271,6 @@ }; | ||
var pageview = (function (param) { | ||
if (!isBrowser()) { | ||
return; | ||
} | ||
var template; | ||
@@ -269,0 +277,0 @@ |
@@ -228,2 +228,6 @@ 'use strict'; | ||
var assignGlobalProperty = function assignGlobalProperty(id, value) { | ||
if (!isBrowser()) { | ||
return; | ||
} | ||
window["ga-disable-".concat(id)] = value; | ||
@@ -273,2 +277,6 @@ }; | ||
var pageview = (function (param) { | ||
if (!isBrowser()) { | ||
return; | ||
} | ||
var template; | ||
@@ -275,0 +283,0 @@ |
@@ -228,2 +228,6 @@ (function (global, factory) { | ||
var assignGlobalProperty = function assignGlobalProperty(id, value) { | ||
if (!isBrowser()) { | ||
return; | ||
} | ||
window["ga-disable-".concat(id)] = value; | ||
@@ -273,2 +277,6 @@ }; | ||
var pageview = (function (param) { | ||
if (!isBrowser()) { | ||
return; | ||
} | ||
var template; | ||
@@ -275,0 +283,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],n):n((e=e||self).VueGtag={},e.Vue)}(this,(function(e,n){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var i,c=function(e){return"function"==typeof e},u=function(e){return e&&"object"===t(e)&&!Array.isArray(e)},p=function e(n){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];if(!o.length)return n;var i=o.shift();if(u(n)&&u(i)){for(var c in i)u(i[c])?(n[c]||Object.assign(n,r({},c,{})),e(n[c],i[c])):Object.assign(n,r({},c,i[c]));return e.apply(void 0,[n].concat(o))}},l=function(){return"undefined"!=typeof window&&"undefined"!=typeof document},f=function(e){l()},d={},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}};d=p(n,e)},g=function(){return d},y=function(){var e;if(l()){var n=g(),t=n.globalObjectName;(e=window)[t].apply(e,arguments)}},m=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r=g(),o=r.config,a=r.includes;y.apply(void 0,["config",o.id].concat(n)),Array.isArray(a)&&a.forEach((function(e){y.apply(void 0,["config",e.id].concat(n))}))},v=function(e,n){window["ga-disable-".concat(e)]=n},h=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=g(),t=n.config,r=n.includes;v(t.id,e),Array.isArray(r)&&r.forEach((function(n){return v(n.id,e)}))},w=function(){h(!0)},b=function(){h(!1)},O=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=g(),r=t.includes,o=t.defaultGroupName;null==n.send_to&&Array.isArray(r)&&r.length&&(n.send_to=r.map((function(e){return e.id})).concat(o)),y("event",e,n)},_=function(e){var n;if("string"==typeof e)n={page_path:e};else if(e.path||e.fullPath){var t=g().pageTrackerUseFullPath;n=a(a({},e.name&&{page_title:e.name}),{},{page_path:t?e.fullPath:e.path})}else n=e;null==n.page_location&&(n.page_location=window.location.href),null==n.send_page_view&&(n.send_page_view=!0),O("page_view",n)},k=function(e){var n,t=g().appName;e&&((n="string"==typeof e?{screen_name:e}:e).app_name=n.app_name||t,O("screen_view",n))},j=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];O.apply(void 0,["exception"].concat(n))},T=function(e){m("linker",e)},P=function(e){O("timing_complete",e)},A=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];y.apply(void 0,["set"].concat(n))},E=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];O.apply(void 0,["refund"].concat(n))},S=function(e){O("purchase",e)},N=function(e){m({custom_map:e})},R=Object.freeze({__proto__:null,query:y,config:m,optOut:w,optIn:b,pageview:_,screenview:k,exception:j,linker:T,time:P,set:A,refund:E,purchase:S,customMap:N,event:O}),x=function(e){return e.$gtag=e.prototype.$gtag=R},L=function(e){i=e},D=function(){return i},M=function(e){return a({send_page_view:!1},e)},B=function(){var e=g(),n=e.config,t=e.includes;y("config",n.id,M(n.params)),Array.isArray(t)&&t.forEach((function(e){y("config",e.id,M(e.params))}))},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=g(),r=t.appName,o=t.pageTrackerTemplate,a=t.pageTrackerScreenviewEnabled,i=t.pageTrackerSkipSamePath,u=e;c(o)?u=o(e,n):a&&(f('Missing "appName" property inside the plugin options.',null==r),f('Missing "name" property in the route with path value "'.concat(e.path,'".'),null==e.name),u={app_name:r,screen_name:e.name}),i&&e.path===n.path||(a?k(u):_(u))},q=function(e){var n=g().pageTrackerExcludedRoutes;return n.includes(e.path)||n.includes(e.name)},G=function(){var e=g(),t=e.onBeforeTrack,r=e.onAfterTrack,o=D();o.onReady((function(){n.nextTick().then((function(){var e=o.currentRoute;B(),q(e)||U(e)})),o.afterEach((function(e,o){n.nextTick().then((function(){q(e)||(c(t)&&t(e,o),U(e,o),c(r)&&r(e,o))}))}))}))},C=function(){var e=g(),n=e.onReady,t=e.onError,r=e.globalObjectName,o=e.globalDataLayerName,a=e.config,i=e.customResourceURL,c=e.customPreconnectOrigin,u=e.deferScriptLoad,p=e.pageTrackerEnabled,f=e.disableScriptLoad,d=Boolean(p&&D());if(function(){if(l()){var e=g(),n=e.enabled,t=e.globalObjectName,r=e.globalDataLayerName;null==window[t]&&(window[r]=window[r]||[],window[t]=function(){window[r].push(arguments)}),window[t]("js",new Date),n||w(),window[t]}}(),d?G():B(),!f)return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t,r){if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");if(a.async=!0,a.src=e,a.defer=n.defer,n.preconnectOrigin){var i=document.createElement("link");i.href=n.preconnectOrigin,i.rel="preconnect",o.appendChild(i)}o.appendChild(a),a.onload=t,a.onerror=r}}))}("".concat(i,"?id=").concat(a.id,"&l=").concat(o),{preconnectOrigin:c,defer:u}).then((function(){n&&n(window[r])})).catch((function(e){return t&&t(e),e}))},F=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;x(e),s(n),L(t),g().bootstrap&&C()};e.addRoutesTracker=G,e.bootstrap=C,e.config=m,e.customMap=N,e.default=F,e.event=O,e.exception=j,e.install=F,e.linker=T,e.optIn=b,e.optOut=w,e.pageview=_,e.purchase=S,e.query=y,e.refund=E,e.screenview=k,e.set=A,e.setOptions=s,e.setRouter=L,e.time=P,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],n):n((e=e||self).VueGtag={},e.Vue)}(this,(function(e,n){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var i,c=function(e){return"function"==typeof e},u=function(e){return e&&"object"===t(e)&&!Array.isArray(e)},p=function e(n){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];if(!o.length)return n;var i=o.shift();if(u(n)&&u(i)){for(var c in i)u(i[c])?(n[c]||Object.assign(n,r({},c,{})),e(n[c],i[c])):Object.assign(n,r({},c,i[c]));return e.apply(void 0,[n].concat(o))}},l=function(){return"undefined"!=typeof window&&"undefined"!=typeof document},f=function(e){l()},d={},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}};d=p(n,e)},g=function(){return d},y=function(){var e;if(l()){var n=g(),t=n.globalObjectName;(e=window)[t].apply(e,arguments)}},m=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r=g(),o=r.config,a=r.includes;y.apply(void 0,["config",o.id].concat(n)),Array.isArray(a)&&a.forEach((function(e){y.apply(void 0,["config",e.id].concat(n))}))},v=function(e,n){l()&&(window["ga-disable-".concat(e)]=n)},h=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=g(),t=n.config,r=n.includes;v(t.id,e),Array.isArray(r)&&r.forEach((function(n){return v(n.id,e)}))},w=function(){h(!0)},b=function(){h(!1)},O=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=g(),r=t.includes,o=t.defaultGroupName;null==n.send_to&&Array.isArray(r)&&r.length&&(n.send_to=r.map((function(e){return e.id})).concat(o)),y("event",e,n)},_=function(e){if(l()){var n;if("string"==typeof e)n={page_path:e};else if(e.path||e.fullPath){var t=g().pageTrackerUseFullPath;n=a(a({},e.name&&{page_title:e.name}),{},{page_path:t?e.fullPath:e.path})}else n=e;null==n.page_location&&(n.page_location=window.location.href),null==n.send_page_view&&(n.send_page_view=!0),O("page_view",n)}},k=function(e){var n,t=g().appName;e&&((n="string"==typeof e?{screen_name:e}:e).app_name=n.app_name||t,O("screen_view",n))},j=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];O.apply(void 0,["exception"].concat(n))},T=function(e){m("linker",e)},P=function(e){O("timing_complete",e)},A=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];y.apply(void 0,["set"].concat(n))},E=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];O.apply(void 0,["refund"].concat(n))},S=function(e){O("purchase",e)},N=function(e){m({custom_map:e})},R=Object.freeze({__proto__:null,query:y,config:m,optOut:w,optIn:b,pageview:_,screenview:k,exception:j,linker:T,time:P,set:A,refund:E,purchase:S,customMap:N,event:O}),x=function(e){return e.$gtag=e.prototype.$gtag=R},L=function(e){i=e},D=function(){return i},M=function(e){return a({send_page_view:!1},e)},B=function(){var e=g(),n=e.config,t=e.includes;y("config",n.id,M(n.params)),Array.isArray(t)&&t.forEach((function(e){y("config",e.id,M(e.params))}))},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=g(),r=t.appName,o=t.pageTrackerTemplate,a=t.pageTrackerScreenviewEnabled,i=t.pageTrackerSkipSamePath,u=e;c(o)?u=o(e,n):a&&(f('Missing "appName" property inside the plugin options.',null==r),f('Missing "name" property in the route with path value "'.concat(e.path,'".'),null==e.name),u={app_name:r,screen_name:e.name}),i&&e.path===n.path||(a?k(u):_(u))},q=function(e){var n=g().pageTrackerExcludedRoutes;return n.includes(e.path)||n.includes(e.name)},G=function(){var e=g(),t=e.onBeforeTrack,r=e.onAfterTrack,o=D();o.onReady((function(){n.nextTick().then((function(){var e=o.currentRoute;B(),q(e)||U(e)})),o.afterEach((function(e,o){n.nextTick().then((function(){q(e)||(c(t)&&t(e,o),U(e,o),c(r)&&r(e,o))}))}))}))},C=function(){var e=g(),n=e.onReady,t=e.onError,r=e.globalObjectName,o=e.globalDataLayerName,a=e.config,i=e.customResourceURL,c=e.customPreconnectOrigin,u=e.deferScriptLoad,p=e.pageTrackerEnabled,f=e.disableScriptLoad,d=Boolean(p&&D());if(function(){if(l()){var e=g(),n=e.enabled,t=e.globalObjectName,r=e.globalDataLayerName;null==window[t]&&(window[r]=window[r]||[],window[t]=function(){window[r].push(arguments)}),window[t]("js",new Date),n||w(),window[t]}}(),d?G():B(),!f)return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t,r){if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");if(a.async=!0,a.src=e,a.defer=n.defer,n.preconnectOrigin){var i=document.createElement("link");i.href=n.preconnectOrigin,i.rel="preconnect",o.appendChild(i)}o.appendChild(a),a.onload=t,a.onerror=r}}))}("".concat(i,"?id=").concat(a.id,"&l=").concat(o),{preconnectOrigin:c,defer:u}).then((function(){n&&n(window[r])})).catch((function(e){return t&&t(e),e}))},F=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;x(e),s(n),L(t),g().bootstrap&&C()};e.addRoutesTracker=G,e.bootstrap=C,e.config=m,e.customMap=N,e.default=F,e.event=O,e.exception=j,e.install=F,e.linker=T,e.optIn=b,e.optOut=w,e.pageview=_,e.purchase=S,e.query=y,e.refund=E,e.screenview=k,e.set=A,e.setOptions=s,e.setRouter=L,e.time=P,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=vue-gtag.umd.min.js.map |
{ | ||
"name": "vue-gtag", | ||
"description": "Global Site Tag (gtag.js) plugin for Vue", | ||
"version": "1.15.0", | ||
"version": "1.15.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Matteo Gabriele", |
Sorry, the diff of this file is not supported yet
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
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
86826
1774