@amplitude/analytics-browser 2.20.1 → 2.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +1 -1
  2. package/lib/cjs/attribution/helpers.d.ts +1 -2
  3. package/lib/cjs/attribution/helpers.d.ts.map +1 -1
  4. package/lib/cjs/attribution/helpers.js +1 -2
  5. package/lib/cjs/attribution/helpers.js.map +1 -1
  6. package/lib/cjs/attribution/web-attribution.d.ts +1 -2
  7. package/lib/cjs/attribution/web-attribution.d.ts.map +1 -1
  8. package/lib/cjs/attribution/web-attribution.js +2 -4
  9. package/lib/cjs/attribution/web-attribution.js.map +1 -1
  10. package/lib/cjs/browser-client.d.ts +3 -3
  11. package/lib/cjs/browser-client.d.ts.map +1 -1
  12. package/lib/cjs/browser-client.js +8 -5
  13. package/lib/cjs/browser-client.js.map +1 -1
  14. package/lib/cjs/config.d.ts +1 -1
  15. package/lib/cjs/config.d.ts.map +1 -1
  16. package/lib/cjs/config.js +4 -2
  17. package/lib/cjs/config.js.map +1 -1
  18. package/lib/cjs/types.d.ts +1 -2
  19. package/lib/cjs/types.d.ts.map +1 -1
  20. package/lib/cjs/types.js.map +1 -1
  21. package/lib/cjs/version.d.ts +1 -1
  22. package/lib/cjs/version.js +1 -1
  23. package/lib/cjs/version.js.map +1 -1
  24. package/lib/esm/attribution/helpers.d.ts +1 -2
  25. package/lib/esm/attribution/helpers.d.ts.map +1 -1
  26. package/lib/esm/attribution/helpers.js +1 -2
  27. package/lib/esm/attribution/helpers.js.map +1 -1
  28. package/lib/esm/attribution/web-attribution.d.ts +1 -2
  29. package/lib/esm/attribution/web-attribution.d.ts.map +1 -1
  30. package/lib/esm/attribution/web-attribution.js +1 -3
  31. package/lib/esm/attribution/web-attribution.js.map +1 -1
  32. package/lib/esm/browser-client.d.ts +3 -3
  33. package/lib/esm/browser-client.d.ts.map +1 -1
  34. package/lib/esm/browser-client.js +8 -5
  35. package/lib/esm/browser-client.js.map +1 -1
  36. package/lib/esm/config.d.ts +1 -1
  37. package/lib/esm/config.d.ts.map +1 -1
  38. package/lib/esm/config.js +4 -2
  39. package/lib/esm/config.js.map +1 -1
  40. package/lib/esm/types.d.ts +1 -2
  41. package/lib/esm/types.d.ts.map +1 -1
  42. package/lib/esm/types.js.map +1 -1
  43. package/lib/esm/version.d.ts +1 -1
  44. package/lib/esm/version.js +1 -1
  45. package/lib/esm/version.js.map +1 -1
  46. package/lib/scripts/amplitude-bookmarklet-snippet-min.js +1 -1
  47. package/lib/scripts/amplitude-bookmarklet.html +1 -1
  48. package/lib/scripts/amplitude-gtm-min.js +1 -1
  49. package/lib/scripts/amplitude-gtm-min.js.gz +0 -0
  50. package/lib/scripts/amplitude-gtm-min.js.map +1 -1
  51. package/lib/scripts/amplitude-gtm-snippet-min.js +1 -1
  52. package/lib/scripts/amplitude-min.js +1 -1
  53. package/lib/scripts/amplitude-min.js.gz +0 -0
  54. package/lib/scripts/amplitude-min.js.map +1 -1
  55. package/lib/scripts/amplitude-min.umd.js +1 -1
  56. package/lib/scripts/amplitude-min.umd.js.gz +0 -0
  57. package/lib/scripts/amplitude-snippet-instructions.html +1 -1
  58. package/lib/scripts/amplitude-snippet-min.js +1 -1
  59. package/lib/scripts/attribution/helpers.d.ts +1 -2
  60. package/lib/scripts/attribution/helpers.d.ts.map +1 -1
  61. package/lib/scripts/attribution/web-attribution.d.ts +1 -2
  62. package/lib/scripts/attribution/web-attribution.d.ts.map +1 -1
  63. package/lib/scripts/browser-client.d.ts +3 -3
  64. package/lib/scripts/browser-client.d.ts.map +1 -1
  65. package/lib/scripts/config.d.ts +1 -1
  66. package/lib/scripts/config.d.ts.map +1 -1
  67. package/lib/scripts/types.d.ts +1 -2
  68. package/lib/scripts/types.d.ts.map +1 -1
  69. package/lib/scripts/version.d.ts +1 -1
  70. package/package.json +7 -7
  71. package/lib/cjs/attribution/campaign-parser.d.ts +0 -8
  72. package/lib/cjs/attribution/campaign-parser.d.ts.map +0 -1
  73. package/lib/cjs/attribution/campaign-parser.js +0 -69
  74. package/lib/cjs/attribution/campaign-parser.js.map +0 -1
  75. package/lib/cjs/attribution/campaign.d.ts +0 -31
  76. package/lib/cjs/attribution/campaign.d.ts.map +0 -1
  77. package/lib/cjs/attribution/campaign.js +0 -3
  78. package/lib/cjs/attribution/campaign.js.map +0 -1
  79. package/lib/cjs/attribution/constants.d.ts +0 -22
  80. package/lib/cjs/attribution/constants.d.ts.map +0 -1
  81. package/lib/cjs/attribution/constants.js +0 -44
  82. package/lib/cjs/attribution/constants.js.map +0 -1
  83. package/lib/esm/attribution/campaign-parser.d.ts +0 -8
  84. package/lib/esm/attribution/campaign-parser.d.ts.map +0 -1
  85. package/lib/esm/attribution/campaign-parser.js +0 -66
  86. package/lib/esm/attribution/campaign-parser.js.map +0 -1
  87. package/lib/esm/attribution/campaign.d.ts +0 -31
  88. package/lib/esm/attribution/campaign.d.ts.map +0 -1
  89. package/lib/esm/attribution/campaign.js +0 -2
  90. package/lib/esm/attribution/campaign.js.map +0 -1
  91. package/lib/esm/attribution/constants.d.ts +0 -22
  92. package/lib/esm/attribution/constants.d.ts.map +0 -1
  93. package/lib/esm/attribution/constants.js +0 -41
  94. package/lib/esm/attribution/constants.js.map +0 -1
  95. package/lib/scripts/attribution/campaign-parser.d.ts +0 -8
  96. package/lib/scripts/attribution/campaign-parser.d.ts.map +0 -1
  97. package/lib/scripts/attribution/campaign.d.ts +0 -31
  98. package/lib/scripts/attribution/campaign.d.ts.map +0 -1
  99. package/lib/scripts/attribution/constants.d.ts +0 -22
  100. package/lib/scripts/attribution/constants.d.ts.map +0 -1
@@ -1 +1 @@
1
- !function(){"use strict";!function(e,t){var r=e.amplitudeGTM||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},i=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};!function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})}(e,t,Array.prototype.slice.call(arguments))}},o=function(e){for(var t=0;t<v.length;t++)i(e,v[t],!1);for(var r=0;r<y.length;r++)i(e,y[r],!0)};r.invoked=!0;var a=t.createElement("script");a.type="text/javascript",a.integrity="sha384-f16WF7srkHOi8cjxbB+qFxOhZRlfzvmti8Xu/msWYxYWPU1nXtWr0YDtdu5B0XoN",a.crossOrigin="anonymous",a.async=!0,a.src="https://cdn.amplitude.com/libs/analytics-browser-gtm-2.20.1-min.js.gz",a.onload=function(){e.amplitudeGTM.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var c=t.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c);for(var u=function(){return this._q=[],this},l=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],p=0;p<l.length;p++)n(u,l[p]);r.Identify=u;for(var d=function(){return this._q=[],this},f=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setReceipt","setReceiptSig","setCurrency","setEventProperties"],m=0;m<f.length;m++)n(d,f[m]);r.Revenue=d;var v=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset","extendSession"],y=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];o(r),r.createInstance=function(e){return r._iq[e]={_q:[]},o(r._iq[e]),r._iq[e]},e.amplitudeGTM=r,e.amplitude||(e.amplitude=e.amplitudeGTM)}}(window,document)}();
1
+ !function(){"use strict";!function(e,t){var r=e.amplitudeGTM||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},i=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};!function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})}(e,t,Array.prototype.slice.call(arguments))}},o=function(e){for(var t=0;t<y.length;t++)i(e,y[t],!1);for(var r=0;r<g.length;r++)i(e,g[r],!0)};r.invoked=!0;var a=t.createElement("script");a.type="text/javascript",a.integrity="sha384-uqQK+LxIDZGJKyl1vs0g1d91nClP9Mkj0jAS8Gak9tjRgtkUkCOr7p6xRVQdywDx",a.crossOrigin="anonymous",a.async=!0,a.src="https://cdn.amplitude.com/libs/analytics-browser-gtm-2.21.1-min.js.gz",a.onload=function(){e.amplitudeGTM.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var c=t.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c);for(var u=function(){return this._q=[],this},l=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],p=0;p<l.length;p++)n(u,l[p]);r.Identify=u;for(var d=function(){return this._q=[],this},f=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setReceipt","setReceiptSig","setCurrency","setEventProperties"],v=0;v<f.length;v++)n(d,f[v]);r.Revenue=d;var y=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset","extendSession"],g=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];o(r),r.createInstance=function(e){return r._iq[e]={_q:[]},o(r._iq[e]),r._iq[e]},e.amplitudeGTM=r,e.amplitude||(e.amplitude=e.amplitudeGTM)}}(window,document)}();