Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amplitude/amplitude-js-gtm

Package Overview
Dependencies
Maintainers
19
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/amplitude-js-gtm - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

dist/index.js

@@ -1,1 +0,1 @@

(()=>{"use strict";!function(e,t){var n=e.amplitude||{_q:[],_iq:{}},i=t.createElement("script");i.type="text/javascript",i.integrity='sha384-VuGgAcmMrGHihvjXxxBVMIqoDFXc8/PO9q/08kCgq4Wn1iPnSmUbI3xhXaFozVFv"',i.crossOrigin="anonymous",i.async=!0,i.src="https://cdn.amplitude.com/libs/amplitude-8.18.1-min.gz.js",i.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var r=t.getElementsByTagName("script")[0];function s(e,t){e.prototype[t]=function(){return this._q.push([t].concat(Array.prototype.slice.call(arguments,0))),this}}r.parentNode.insertBefore(i,r);for(var o=function(){return this._q=[],this},a=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove"],u=0;u<a.length;u++)s(o,a[u]);n.Identify=o;for(var p=function(){return this._q=[],this},c=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"],l=0;l<c.length;l++)s(p,c[l]);n.Revenue=p;var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","enableTracking","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId","setLibrary"];function v(e){function t(t){e[t]=function(){e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}for(var n=0;n<d.length;n++)t(d[n])}v(n),n.getInstance=function(e){return e=(e&&0!==e.length?e:"$default_instance").toLowerCase(),Object.prototype.hasOwnProperty.call(n._iq,e)||(n._iq[e]={_q:[]},v(n._iq[e])),n._iq[e]},e.amplitude=n}(window,document),function(e,t){if(e.amplitude&&"function"==typeof e.amplitude.getInstance){e.amplitude.getInstance().setLibrary("amplitude-js-gtm","2.0.1");var n=["init","setOptOut","isNewSession","getSessionId","setSessionId","setUserId","setUserProperties","clearUserProperties","setGroup","regenerateDeviceId","setDeviceId","setVersionName","logEvent","logEventWithTimestamp","logEventWithGroups","revenue","identify"],i=["add","append","prepend","set","setOnce","unset","preInsert"],r=function(t,n){var r=new e.amplitude.Identify;Array.isArray(n)&&0!==n.length&&(n[0].forEach((function(e){var t=e.shift();-1!==i.indexOf(t)&&r[t].apply(r,e)})),t.identify(r))},s=function(t,n){if((n=n.shift()).price&&n.id){var i=(new e.amplitude.Revenue).setProductId(n.id).setQuantity(n.quantity||1).setPrice(n.price).setRevenueType(n.revenueType||"").setEventProperties(n.eventProperties||{});t.logRevenueV2(i)}};e[t]=e[t]||function(){var t=[].slice.call(arguments,0),i=t.shift(),o=null,a=i.match(/^(.+)\.(.+)$/);if(a&&3===a.length&&(o=a[1],i=a[2]),-1!==n.indexOf(i)){var u=e.amplitude.getInstance(o);return"revenue"===i?s(u,t):"identify"===i?r(u,t):u[i].apply(u,t)}}}}(window,"_amplitude")})();
(()=>{"use strict";!function(e,t){var n=e.amplitude||{_q:[],_iq:{}},i=t.createElement("script");i.type="text/javascript",i.integrity="sha384-VuGgAcmMrGHihvjXxxBVMIqoDFXc8/PO9q/08kCgq4Wn1iPnSmUbI3xhXaFozVFv",i.crossOrigin="anonymous",i.async=!0,i.src="https://cdn.amplitude.com/libs/amplitude-8.18.1-min.gz.js",i.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var r=t.getElementsByTagName("script")[0];function s(e,t){e.prototype[t]=function(){return this._q.push([t].concat(Array.prototype.slice.call(arguments,0))),this}}r.parentNode.insertBefore(i,r);for(var o=function(){return this._q=[],this},a=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove"],u=0;u<a.length;u++)s(o,a[u]);n.Identify=o;for(var p=function(){return this._q=[],this},c=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"],l=0;l<c.length;l++)s(p,c[l]);n.Revenue=p;var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","enableTracking","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId","setLibrary"];function v(e){function t(t){e[t]=function(){e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}for(var n=0;n<d.length;n++)t(d[n])}v(n),n.getInstance=function(e){return e=(e&&0!==e.length?e:"$default_instance").toLowerCase(),Object.prototype.hasOwnProperty.call(n._iq,e)||(n._iq[e]={_q:[]},v(n._iq[e])),n._iq[e]},e.amplitude=n}(window,document),function(e,t){if(e.amplitude&&"function"==typeof e.amplitude.getInstance){e.amplitude.getInstance().setLibrary("amplitude-js-gtm","2.0.2");var n=["init","setOptOut","isNewSession","getSessionId","setSessionId","setUserId","setUserProperties","clearUserProperties","setGroup","regenerateDeviceId","setDeviceId","setVersionName","logEvent","logEventWithTimestamp","logEventWithGroups","revenue","identify"],i=["add","append","prepend","set","setOnce","unset","preInsert"],r=function(t,n){var r=new e.amplitude.Identify;Array.isArray(n)&&0!==n.length&&(n[0].forEach((function(e){var t=e.shift();-1!==i.indexOf(t)&&r[t].apply(r,e)})),t.identify(r))},s=function(t,n){if((n=n.shift()).price&&n.id){var i=(new e.amplitude.Revenue).setProductId(n.id).setQuantity(n.quantity||1).setPrice(n.price).setRevenueType(n.revenueType||"").setEventProperties(n.eventProperties||{});t.logRevenueV2(i)}};e[t]=e[t]||function(){var t=[].slice.call(arguments,0),i=t.shift(),o=null,a=i.match(/^(.+)\.(.+)$/);if(a&&3===a.length&&(o=a[1],i=a[2]),-1!==n.indexOf(i)){var u=e.amplitude.getInstance(o);return"revenue"===i?s(u,t):"identify"===i?r(u,t):u[i].apply(u,t)}}}}(window,"_amplitude")})();
{
"name": "@amplitude/amplitude-js-gtm",
"version": "2.0.1",
"version": "2.0.2",
"description": "Amplitude JS SDK Wrapper for use with Google Tag Manager",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -8,3 +8,3 @@ import { version } from '../package.json';

r.type = 'text/javascript';
r.integrity = 'sha384-VuGgAcmMrGHihvjXxxBVMIqoDFXc8/PO9q/08kCgq4Wn1iPnSmUbI3xhXaFozVFv"';
r.integrity = 'sha384-VuGgAcmMrGHihvjXxxBVMIqoDFXc8/PO9q/08kCgq4Wn1iPnSmUbI3xhXaFozVFv';
r.crossOrigin = 'anonymous';

@@ -11,0 +11,0 @@ r.async = true;

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