@snowplow/browser-plugin-ad-tracking
Advanced tools
Comparing version 3.0.0-beta.3 to 3.0.0-beta.4
/*! | ||
* Ad tracking for Snowplow v3.0.0-beta.3 (http://bit.ly/sp-js) | ||
* Ad tracking for Snowplow v3.0.0-beta.4 (http://bit.ly/sp-js) | ||
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -4,0 +4,0 @@ * Licensed under BSD-3-Clause |
/*! | ||
* Ad tracking for Snowplow v3.0.0-beta.3 (http://bit.ly/sp-js) | ||
* Ad tracking for Snowplow v3.0.0-beta.4 (http://bit.ly/sp-js) | ||
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -35,3 +35,3 @@ * Licensed under BSD-3-Clause | ||
/*! | ||
* Core functionality for Snowplow JavaScript trackers v3.0.0-beta.3 (http://bit.ly/sp-js) | ||
* Core functionality for Snowplow JavaScript trackers v3.0.0-beta.4 (http://bit.ly/sp-js) | ||
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -88,3 +88,3 @@ * Licensed under BSD-3-Clause | ||
if (json && isNonEmptyJson(json)) { | ||
var jsonWithKeys = [keyIfEncoded, keyIfNotEncoded, json]; | ||
var jsonWithKeys = { keyIfEncoded: keyIfEncoded, keyIfNotEncoded: keyIfNotEncoded, json: json }; | ||
jsonForProcessing.push(jsonWithKeys); | ||
@@ -371,3 +371,3 @@ allJson.push(jsonWithKeys); | ||
/*! | ||
* Core functionality for Snowplow Browser trackers v3.0.0-beta.3 (http://bit.ly/sp-js) | ||
* Core functionality for Snowplow Browser trackers v3.0.0-beta.4 (http://bit.ly/sp-js) | ||
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -374,0 +374,0 @@ * Licensed under BSD-3-Clause |
/*! | ||
* Ad tracking for Snowplow v3.0.0-beta.3 (http://bit.ly/sp-js) | ||
* Ad tracking for Snowplow v3.0.0-beta.4 (http://bit.ly/sp-js) | ||
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -7,3 +7,3 @@ * Licensed under BSD-3-Clause | ||
"use strict";!function(n,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((n="undefined"!=typeof globalThis?globalThis:n||self).snowplowAdTracking={})}(this,(function(n){function o(n,o){for(var e=0,t=o.length,r=n.length;e<t;e++,r++)n[r]=o[e];return n}function e(n){var o=n.event;n=o.schema;var e=o.data;return o=function(){var n,o={},e=[],t=[],r=function(n,e){null!=e&&""!==e&&(o[n]=e)};return{add:r,addDict:function(n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&r(o,n[o])},addJson:function(n,o,r){var c;if(c=r)n:{if(null!=r&&(r.constructor==={}.constructor||r.constructor===[].constructor))for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){c=!0;break n}c=!1}c&&(n=[n,o,r],t.push(n),e.push(n))},getPayload:function(){return o},getJson:function(){return e},withJsonProcessor:function(o){n=o},build:function(){return null==n||n(this,t),o}}}(),n={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:n,data:e}},o.add("e","ue"),o.addJson("ue_px","ue_pr",n),o}function t(n,o){void 0===o&&(o={});var e,t={};for(e in n)(o[e]||null!==n[e]&&void 0!==n[e])&&(t[e]=n[e]);return t}function r(n,o,e){try{var t=null!=n?n:Object.keys(o);n=[];for(var r=0;r<t.length;r++){var c=t[r];o.hasOwnProperty(c)?n.push(o[c]):i.warn(c+" not configured")}n.forEach(e)}catch(n){i.error("Function failed",n)}}var c,a;(a=c||(c={}))[a.none=0]="none",a[a.error=1]="error",a[a.warn=2]="warn",a[a.debug=3]="debug",a[a.info=4]="info";var i=function(n){return void 0===n&&(n=c.warn),{setLogLevel:function(o){n=c[o]?o:c.warn},warn:function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];n>=c.warn&&"undefined"!=typeof console&&"undefined"!=typeof console&&(a="Snowplow: "+e,t?console.warn.apply(console,o([a+"\n",t],r)):console.warn.apply(console,o([a],r)))},error:function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];n>=c.error&&"undefined"!=typeof console&&(a="Snowplow: "+e+"\n",t?console.error.apply(console,o([a+"\n",t],r)):console.error.apply(console,o([a],r)))},debug:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];n>=c.debug&&"undefined"!=typeof console&&"undefined"!=typeof console&&console.warn.apply(console,o(["Snowplow: "+e],t))},info:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];n>=c.info&&"undefined"!=typeof console&&"undefined"!=typeof console&&console.info.apply(console,o(["Snowplow: "+e],t))}}}(),s={};n.AdTrackingPlugin=function(){return{activateBrowserPlugin:function(n){s[n.id]=n}}},n.trackAdClick=function(n,o){void 0===o&&(o=Object.keys(s)),r(o,s,(function(o){o.core.track(function(n){return e({event:n={schema:"iglu:com.snowplowanalytics.snowplow/ad_click/jsonschema/1-0-0",data:t({targetUrl:n.targetUrl,clickId:n.clickId,costModel:n.costModel,cost:n.cost,bannerId:n.bannerId,zoneId:n.zoneId,impressionId:n.impressionId,advertiserId:n.advertiserId,campaignId:n.campaignId})}})}(n),n.context,n.timestamp)}))},n.trackAdConversion=function(n,o){void 0===o&&(o=Object.keys(s)),r(o,s,(function(o){o.core.track(function(n){return e({event:n={schema:"iglu:com.snowplowanalytics.snowplow/ad_conversion/jsonschema/1-0-0",data:t({conversionId:n.conversionId,costModel:n.costModel,cost:n.cost,category:n.category,action:n.action,property:n.property,initialValue:n.initialValue,advertiserId:n.advertiserId,campaignId:n.campaignId})}})}(n),n.context,n.timestamp)}))},n.trackAdImpression=function(n,o){void 0===o&&(o=Object.keys(s)),r(o,s,(function(o){o.core.track(function(n){return e({event:n={schema:"iglu:com.snowplowanalytics.snowplow/ad_impression/jsonschema/1-0-0",data:t({impressionId:n.impressionId,costModel:n.costModel,cost:n.cost,targetUrl:n.targetUrl,bannerId:n.bannerId,zoneId:n.zoneId,advertiserId:n.advertiserId,campaignId:n.campaignId})}})}(n),n.context,n.timestamp)}))},Object.defineProperty(n,"__esModule",{value:!0})})); | ||
"use strict";!function(n,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((n="undefined"!=typeof globalThis?globalThis:n||self).snowplowAdTracking={})}(this,(function(n){function o(n,o){for(var e=0,t=o.length,r=n.length;e<t;e++,r++)n[r]=o[e];return n}function e(n){var o=n.event;n=o.schema;var e=o.data;return o=function(){var n,o={},e=[],t=[],r=function(n,e){null!=e&&""!==e&&(o[n]=e)};return{add:r,addDict:function(n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&r(o,n[o])},addJson:function(n,o,r){var c;if(c=r)n:{if(null!=r&&(r.constructor==={}.constructor||r.constructor===[].constructor))for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){c=!0;break n}c=!1}c&&(n={keyIfEncoded:n,keyIfNotEncoded:o,json:r},t.push(n),e.push(n))},getPayload:function(){return o},getJson:function(){return e},withJsonProcessor:function(o){n=o},build:function(){return null==n||n(this,t),o}}}(),n={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:n,data:e}},o.add("e","ue"),o.addJson("ue_px","ue_pr",n),o}function t(n,o){void 0===o&&(o={});var e,t={};for(e in n)(o[e]||null!==n[e]&&void 0!==n[e])&&(t[e]=n[e]);return t}function r(n,o,e){try{var t=null!=n?n:Object.keys(o);n=[];for(var r=0;r<t.length;r++){var c=t[r];o.hasOwnProperty(c)?n.push(o[c]):i.warn(c+" not configured")}n.forEach(e)}catch(n){i.error("Function failed",n)}}var c,a;(a=c||(c={}))[a.none=0]="none",a[a.error=1]="error",a[a.warn=2]="warn",a[a.debug=3]="debug",a[a.info=4]="info";var i=function(n){return void 0===n&&(n=c.warn),{setLogLevel:function(o){n=c[o]?o:c.warn},warn:function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];n>=c.warn&&"undefined"!=typeof console&&"undefined"!=typeof console&&(a="Snowplow: "+e,t?console.warn.apply(console,o([a+"\n",t],r)):console.warn.apply(console,o([a],r)))},error:function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];n>=c.error&&"undefined"!=typeof console&&(a="Snowplow: "+e+"\n",t?console.error.apply(console,o([a+"\n",t],r)):console.error.apply(console,o([a],r)))},debug:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];n>=c.debug&&"undefined"!=typeof console&&"undefined"!=typeof console&&console.warn.apply(console,o(["Snowplow: "+e],t))},info:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];n>=c.info&&"undefined"!=typeof console&&"undefined"!=typeof console&&console.info.apply(console,o(["Snowplow: "+e],t))}}}(),s={};n.AdTrackingPlugin=function(){return{activateBrowserPlugin:function(n){s[n.id]=n}}},n.trackAdClick=function(n,o){void 0===o&&(o=Object.keys(s)),r(o,s,(function(o){o.core.track(function(n){return e({event:n={schema:"iglu:com.snowplowanalytics.snowplow/ad_click/jsonschema/1-0-0",data:t({targetUrl:n.targetUrl,clickId:n.clickId,costModel:n.costModel,cost:n.cost,bannerId:n.bannerId,zoneId:n.zoneId,impressionId:n.impressionId,advertiserId:n.advertiserId,campaignId:n.campaignId})}})}(n),n.context,n.timestamp)}))},n.trackAdConversion=function(n,o){void 0===o&&(o=Object.keys(s)),r(o,s,(function(o){o.core.track(function(n){return e({event:n={schema:"iglu:com.snowplowanalytics.snowplow/ad_conversion/jsonschema/1-0-0",data:t({conversionId:n.conversionId,costModel:n.costModel,cost:n.cost,category:n.category,action:n.action,property:n.property,initialValue:n.initialValue,advertiserId:n.advertiserId,campaignId:n.campaignId})}})}(n),n.context,n.timestamp)}))},n.trackAdImpression=function(n,o){void 0===o&&(o=Object.keys(s)),r(o,s,(function(o){o.core.track(function(n){return e({event:n={schema:"iglu:com.snowplowanalytics.snowplow/ad_impression/jsonschema/1-0-0",data:t({impressionId:n.impressionId,costModel:n.costModel,cost:n.cost,targetUrl:n.targetUrl,bannerId:n.bannerId,zoneId:n.zoneId,advertiserId:n.advertiserId,campaignId:n.campaignId})}})}(n),n.context,n.timestamp)}))},Object.defineProperty(n,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.min.js.map |
{ | ||
"name": "@snowplow/browser-plugin-ad-tracking", | ||
"version": "3.0.0-beta.3", | ||
"version": "3.0.0-beta.4", | ||
"description": "Ad tracking for Snowplow", | ||
@@ -24,4 +24,4 @@ "homepage": "http://bit.ly/sp-js", | ||
"dependencies": { | ||
"@snowplow/browser-tracker-core": "3.0.0-beta.3", | ||
"@snowplow/tracker-core": "3.0.0-beta.3", | ||
"@snowplow/browser-tracker-core": "3.0.0-beta.4", | ||
"@snowplow/tracker-core": "3.0.0-beta.4", | ||
"tslib": "^2.1.0" | ||
@@ -28,0 +28,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
414777
+ Added@snowplow/browser-tracker-core@3.0.0-beta.4(transitive)
+ Added@snowplow/tracker-core@3.0.0-beta.4(transitive)
- Removed@snowplow/browser-tracker-core@3.0.0-beta.3(transitive)
- Removed@snowplow/tracker-core@3.0.0-beta.3(transitive)