web-manager 4.1.20 → 4.1.22

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 (2) hide show
  1. package/dist/index.js +10 -10
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -105,14 +105,14 @@ class Manager {
105
105
  await this._sentry.init(this.config.sentry.config);
106
106
  }
107
107
 
108
- // Initialize Analytics if tracking ID and secret are provided
109
- if (this.config.tracking?.['google-analytics'] && this.config.tracking?.['google-analytics-secret']) {
108
+ // Initialize Analytics if ID and secret are provided
109
+ if (this.config.analytics?.google && this.config.analytics?.googleSecret) {
110
110
  this._analytics.init({
111
- id: this.config.tracking['google-analytics'],
112
- secret: this.config.tracking['google-analytics-secret'],
111
+ id: this.config.analytics.google,
112
+ secret: this.config.analytics.googleSecret,
113
113
  });
114
114
  } else {
115
- console.log('[Analytics] Skipped: missing google-analytics ID or secret');
115
+ console.log('[Analytics] Skipped: missing analytics google ID or secret');
116
116
  }
117
117
 
118
118
  // Initialize service worker if enabled
@@ -310,11 +310,11 @@ class Manager {
310
310
  path: '/service-worker.js'
311
311
  }
312
312
  },
313
- tracking: {
314
- 'google-analytics': '',
315
- 'google-analytics-secret': '',
316
- 'meta-pixel': '',
317
- 'tiktok-pixel': '',
313
+ analytics: {
314
+ google: '',
315
+ googleSecret: '',
316
+ meta: '',
317
+ tiktok: '',
318
318
  },
319
319
  };
320
320
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "4.1.20",
3
+ "version": "4.1.22",
4
4
  "description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.js",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@sentry/browser": "^10.43.0",
46
- "chatsy": "^2.0.2",
46
+ "chatsy": "^2.0.4",
47
47
  "firebase": "^12.10.0",
48
48
  "itwcw-package-analytics": "^1.0.8",
49
49
  "lodash": "^4.17.23"