@grainql/analytics-web 3.3.0 → 3.4.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/dist/index.js CHANGED
@@ -84,7 +84,7 @@ class GrainAnalytics {
84
84
  this.debugAgent = null;
85
85
  this.isDebugMode = false;
86
86
  this.config = {
87
- apiUrl: 'https://api.grainql.com',
87
+ apiUrl: 'https://clientapis.grainql.com',
88
88
  authStrategy: 'NONE',
89
89
  batchSize: 50,
90
90
  flushInterval: 5000, // 5 seconds
@@ -438,8 +438,6 @@ class GrainAnalytics {
438
438
  // This ensures UTM parameters and attribution data are available on ALL events
439
439
  if (!this.config.disableAutoProperties && typeof window !== 'undefined') {
440
440
  const hasConsent = this.consentManager.hasConsent('analytics');
441
- // CRITICAL: Always add attribution for Mission Control analytics
442
- // Attribution is essential for goal tracking regardless of consent or event type
443
441
  const sessionUTMs = (0, attribution_1.getSessionUTMParameters)();
444
442
  if (sessionUTMs) {
445
443
  if (sessionUTMs.utm_source)
package/dist/index.mjs CHANGED
@@ -43,7 +43,7 @@ export class GrainAnalytics {
43
43
  this.debugAgent = null;
44
44
  this.isDebugMode = false;
45
45
  this.config = {
46
- apiUrl: 'https://api.grainql.com',
46
+ apiUrl: 'https://clientapis.grainql.com',
47
47
  authStrategy: 'NONE',
48
48
  batchSize: 50,
49
49
  flushInterval: 5000, // 5 seconds
@@ -397,8 +397,6 @@ export class GrainAnalytics {
397
397
  // This ensures UTM parameters and attribution data are available on ALL events
398
398
  if (!this.config.disableAutoProperties && typeof window !== 'undefined') {
399
399
  const hasConsent = this.consentManager.hasConsent('analytics');
400
- // CRITICAL: Always add attribution for Mission Control analytics
401
- // Attribution is essential for goal tracking regardless of consent or event type
402
400
  const sessionUTMs = getSessionUTMParameters();
403
401
  if (sessionUTMs) {
404
402
  if (sessionUTMs.utm_source)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grainql/analytics-web",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "Lightweight TypeScript SDK for sending analytics events and managing remote configurations via Grain's REST API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",