@masa-finance/analytics-sdk
Advanced tools
Comparing version 0.5.8 to 0.5.9
{ | ||
"name": "@masa-finance/analytics-sdk", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -10,4 +10,2 @@ export type EventType = "pageView" | "customEvent" | "login" | "mint" | "connectWallet" | "swap" | "bridge" | "addLiquidity" | "removeLiquidity" | "farm" | "trade" | "claim"; | ||
export interface BaseEventData { | ||
client_app: string; | ||
client_name: string; | ||
additionalEventData?: Record<string, unknown>; | ||
@@ -14,0 +12,0 @@ } |
@@ -9,4 +9,2 @@ import { FireConnectWalletEventArgs, FireEventArgs, FireLoginEventArgs, FireMintEventArgs, FirePageViewEventArgs, FireTrackCustomEventArgs } from "./interfaces"; | ||
constructor(config: { | ||
clientApp: string; | ||
clientName: string; | ||
clientId: string; | ||
@@ -13,0 +11,0 @@ apiUrl?: string; |
@@ -126,4 +126,2 @@ "use strict"; | ||
description: "User logged in", | ||
client_app: this.config.clientApp, | ||
client_name: this.config.clientName, | ||
additionalEventData: additionalEventData, | ||
@@ -198,3 +196,3 @@ }; | ||
} | ||
event_data = __assign(__assign(__assign({ client_app: this.config.clientApp, client_name: this.config.clientName, page: page }, referrerInfo), utmParams), { additionalEventData: additionalEventData }); | ||
event_data = __assign(__assign(__assign({ page: page }, referrerInfo), utmParams), { additionalEventData: additionalEventData }); | ||
endpoint = utmParamsSearchString | ||
@@ -238,4 +236,2 @@ ? "tracking?".concat(utmParamsSearchString) | ||
event_data = { | ||
client_app: this.config.clientApp, | ||
client_name: this.config.clientName, | ||
page_url: page_url, | ||
@@ -282,4 +278,2 @@ page_title: page_title, | ||
event_data = { | ||
client_app: this.config.clientApp, | ||
client_name: this.config.clientName, | ||
token_name: token_name, | ||
@@ -330,4 +324,2 @@ ticker: ticker, | ||
event_data = { | ||
client_app: this.config.clientApp, | ||
client_name: this.config.clientName, | ||
wallet_type: wallet_type, | ||
@@ -372,4 +364,2 @@ additionalEventData: additionalEventData, | ||
event_data = { | ||
client_app: this.config.clientApp, | ||
client_name: this.config.clientName, | ||
user_address: user_address, | ||
@@ -376,0 +366,0 @@ network: network, |
{ | ||
"name": "@masa-finance/analytics-sdk", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
540556
1010