@amplitude/analytics-browser 2.44.6 → 2.45.0
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.
- package/README.md +1 -1
- package/lib/cjs/attribution/tracking-methods.d.ts +1 -1
- package/lib/cjs/attribution/tracking-methods.d.ts.map +1 -1
- package/lib/cjs/attribution/tracking-methods.js +10 -2
- package/lib/cjs/attribution/tracking-methods.js.map +1 -1
- package/lib/cjs/config.d.ts +1 -1
- package/lib/cjs/version.d.ts +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/cjs/version.js.map +1 -1
- package/lib/esm/attribution/tracking-methods.d.ts +1 -1
- package/lib/esm/attribution/tracking-methods.d.ts.map +1 -1
- package/lib/esm/attribution/tracking-methods.js +10 -2
- package/lib/esm/attribution/tracking-methods.js.map +1 -1
- package/lib/esm/config.d.ts +1 -1
- package/lib/esm/version.d.ts +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/esm/version.js.map +1 -1
- package/lib/scripts/amplitude-bookmarklet-snippet-min.js +1 -1
- package/lib/scripts/amplitude-bookmarklet.html +1 -1
- package/lib/scripts/amplitude-gtm-min.js +1 -1
- package/lib/scripts/amplitude-gtm-min.js.gz +0 -0
- package/lib/scripts/amplitude-gtm-min.js.map +1 -1
- package/lib/scripts/amplitude-gtm-snippet-min.js +1 -1
- package/lib/scripts/amplitude-min.js +1 -1
- package/lib/scripts/amplitude-min.js.gz +0 -0
- package/lib/scripts/amplitude-min.js.map +1 -1
- package/lib/scripts/amplitude-min.umd.js +1 -1
- package/lib/scripts/amplitude-min.umd.js.gz +0 -0
- package/lib/scripts/amplitude-snippet-instructions.html +1 -1
- package/lib/scripts/amplitude-snippet-min.js +1 -1
- package/lib/scripts/attribution/tracking-methods.d.ts +1 -1
- package/lib/scripts/attribution/tracking-methods.d.ts.map +1 -1
- package/lib/scripts/config.d.ts +1 -1
- package/lib/scripts/version.d.ts +1 -1
- package/package.json +9 -9
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/javascript">
|
|
2
|
-
!function(){"use strict";!function(e,t){var r=e.amplitude||{_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})}},o=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))}},i=function(e){for(var t=0;t<y.length;t++)o(e,y[t],!1);for(var r=0;r<g.length;r++)o(e,g[r],!0)};r.invoked=!0;var c=t.createElement("script");c.type="text/javascript",c.integrity="sha384-
|
|
2
|
+
!function(){"use strict";!function(e,t){var r=e.amplitude||{_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})}},o=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))}},i=function(e){for(var t=0;t<y.length;t++)o(e,y[t],!1);for(var r=0;r<g.length;r++)o(e,g[r],!0)};r.invoked=!0;var c=t.createElement("script");c.type="text/javascript",c.integrity="sha384-XQIGro5vKBjeKbCMyWZF4q8Puikh1eIei8tB10PoJuxTrmVKpFnlIWPm7GvsgLcf",c.crossOrigin="anonymous",c.async=!0,c.src="https://cdn.amplitude.com/libs/analytics-browser-2.45.0-min.js.gz",c.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var a=t.getElementsByTagName("script")[0];a.parentNode.insertBefore(c,a);for(var u=function(){return this._q=[],this},p=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],l=0;l<p.length;l++)n(u,p[l]);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"];i(r),r.createInstance=function(e){return r._iq[e]={_q:[]},i(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
|
|
3
3
|
|
|
4
4
|
amplitude.init("<YOUR_API_KEY>");
|
|
5
5
|
</script>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";!function(e,t){var r=e.amplitude||{_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})}},o=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))}},i=function(e){for(var t=0;t<y.length;t++)o(e,y[t],!1);for(var r=0;r<g.length;r++)o(e,g[r],!0)};r.invoked=!0;var c=t.createElement("script");c.type="text/javascript",c.integrity="sha384-
|
|
1
|
+
!function(){"use strict";!function(e,t){var r=e.amplitude||{_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})}},o=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))}},i=function(e){for(var t=0;t<y.length;t++)o(e,y[t],!1);for(var r=0;r<g.length;r++)o(e,g[r],!0)};r.invoked=!0;var c=t.createElement("script");c.type="text/javascript",c.integrity="sha384-XQIGro5vKBjeKbCMyWZF4q8Puikh1eIei8tB10PoJuxTrmVKpFnlIWPm7GvsgLcf",c.crossOrigin="anonymous",c.async=!0,c.src="https://cdn.amplitude.com/libs/analytics-browser-2.45.0-min.js.gz",c.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var a=t.getElementsByTagName("script")[0];a.parentNode.insertBefore(c,a);for(var u=function(){return this._q=[],this},p=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],l=0;l<p.length;l++)n(u,p[l]);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"];i(r),r.createInstance=function(e){return r._iq[e]={_q:[]},i(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
|
|
@@ -3,7 +3,7 @@ export declare const USER_PROPERTY_TRACKING_METHOD: TrackingMethod;
|
|
|
3
3
|
export declare const EVENT_PROPERTY_TRACKING_METHOD: TrackingMethod;
|
|
4
4
|
/**
|
|
5
5
|
* Normalizes attribution tracking methods from runtime config, drops unsupported values,
|
|
6
|
-
* and falls back to the
|
|
6
|
+
* and falls back to the default methods when nothing valid is provided.
|
|
7
7
|
*/
|
|
8
8
|
export declare const normalizeTrackingMethod: (trackingMethod?: unknown) => TrackingMethod[];
|
|
9
9
|
export declare const hasTrackingMethod: (options: AttributionOptions, trackingMethod: TrackingMethod) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracking-methods.d.ts","sourceRoot":"","sources":["../../../src/attribution/tracking-methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE/E,eAAO,MAAM,6BAA6B,EAAE,cAA+B,CAAC;AAC5E,eAAO,MAAM,8BAA8B,EAAE,cAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"tracking-methods.d.ts","sourceRoot":"","sources":["../../../src/attribution/tracking-methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE/E,eAAO,MAAM,6BAA6B,EAAE,cAA+B,CAAC;AAC5E,eAAO,MAAM,8BAA8B,EAAE,cAAgC,CAAC;AAc9E;;;GAGG;AACH,eAAO,MAAM,uBAAuB,oBAAqB,OAAO,KAAG,cAAc,EAMhF,CAAC;AAEF,eAAO,MAAM,iBAAiB,YAAa,kBAAkB,kBAAkB,cAAc,YACnB,CAAC;AAE3E,eAAO,MAAM,gCAAgC,YAAa,kBAAkB,YACjB,CAAC;AAE5D,eAAO,MAAM,iCAAiC,YAAa,kBAAkB,YACjB,CAAC"}
|
package/lib/scripts/config.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare class BrowserConfig extends Config implements IBrowserConfig {
|
|
|
40
40
|
topLevelDomain?: string | undefined;
|
|
41
41
|
enableRequestBodyCompression: boolean;
|
|
42
42
|
customEnrichment?: boolean | CustomEnrichmentOptions | undefined;
|
|
43
|
-
readonly version = "2.
|
|
43
|
+
readonly version = "2.45.0";
|
|
44
44
|
protected _cookieStorage: Storage<UserSession>;
|
|
45
45
|
protected _deviceId?: string;
|
|
46
46
|
protected _lastEventId?: number;
|
package/lib/scripts/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.45.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amplitude/analytics-browser",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.45.0",
|
|
4
4
|
"description": "Official Amplitude SDK for Web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"analytics",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"tslib": "^2.4.1",
|
|
29
|
-
"@amplitude/analytics-core": "2.
|
|
30
|
-
"@amplitude/plugin-autocapture-browser": "1.28.
|
|
31
|
-
"@amplitude/plugin-event-property-attribution-browser": "0.2.
|
|
32
|
-
"@amplitude/plugin-
|
|
33
|
-
"@amplitude/plugin-
|
|
34
|
-
"@amplitude/plugin-page-
|
|
35
|
-
"@amplitude/plugin-web-vitals-browser": "1.1.
|
|
36
|
-
"@amplitude/plugin-
|
|
29
|
+
"@amplitude/analytics-core": "2.53.0",
|
|
30
|
+
"@amplitude/plugin-autocapture-browser": "1.28.5",
|
|
31
|
+
"@amplitude/plugin-event-property-attribution-browser": "0.2.8",
|
|
32
|
+
"@amplitude/plugin-custom-enrichment-browser": "0.1.16",
|
|
33
|
+
"@amplitude/plugin-page-url-enrichment-browser": "0.7.18",
|
|
34
|
+
"@amplitude/plugin-page-view-tracking-browser": "2.11.8",
|
|
35
|
+
"@amplitude/plugin-web-vitals-browser": "1.1.40",
|
|
36
|
+
"@amplitude/plugin-network-capture-browser": "1.10.8"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@aws-sdk/client-s3": "^3.229.0",
|