aesirx-analytics 2.2.9 → 2.2.11

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/dist/index.js CHANGED
@@ -452,7 +452,7 @@ var endTrackerVisibilityState = (endPoint) => {
452
452
  endTracker(endPoint, window["event_uuid"], window["visitor_uuid"]);
453
453
  }
454
454
  if (document.visibilityState === "visible") {
455
- const response = await startTracker(endPoint);
455
+ const response = await startTracker(endPoint, "", "", "", window["attributes"]);
456
456
  window["event_uuid"] = response?.event_uuid;
457
457
  }
458
458
  });
@@ -476,6 +476,7 @@ var AnalyticsHandle = ({ router, attributes, children }) => {
476
476
  async (prevRoute2, attributes2) => {
477
477
  const referer = prevRoute2 ? prevRoute2 : "";
478
478
  window["referer"] = referer;
479
+ window["attributes"] = attributes2;
479
480
  const responseStart = await startTracker(endPoint, "", referer, "", attributes2);
480
481
  responseStart?.event_uuid && AnalyticsStore.setEventID(responseStart.event_uuid);
481
482
  responseStart?.visitor_uuid && AnalyticsStore.setUUID(responseStart.visitor_uuid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aesirx-analytics",
3
- "version": "2.2.9",
3
+ "version": "2.2.11",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "AesirX",
6
6
  "repository": "https://gitlab.redweb.dk/aesirx/analytics",
@@ -14,7 +14,7 @@
14
14
  "@concordium/web-sdk": "^7.0.4-rc.3",
15
15
  "@web3modal/ethereum": "^2.7.0",
16
16
  "@web3modal/react": "^2.7.0",
17
- "aesirx-sso": "^1.4.8",
17
+ "aesirx-sso": "^1.4.11",
18
18
  "axios": "^1.6.0",
19
19
  "bootstrap": "^5.3.2",
20
20
  "bowser": "^2.11.0",