@aranova/tracking-next 0.7.0 → 0.7.1

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.mjs CHANGED
@@ -35,7 +35,7 @@ function createTrackingClientContext(surface, input = {}) {
35
35
  site_origin: input.siteOrigin ?? (typeof window === "undefined" ? null : window.location.origin),
36
36
  page_title: input.pageTitle ?? (typeof document === "undefined" ? null : document.title || null),
37
37
  referrer: input.referrer ?? (typeof document === "undefined" ? null : document.referrer || null),
38
- environment: input.environment ?? null,
38
+ environment: input.environment ?? "production",
39
39
  active_gtag_ids: input.activeGtagIds ?? null
40
40
  };
41
41
  }
@@ -466,7 +466,7 @@ function createTrackingClient(config) {
466
466
  const maxQueueSize = Math.min(config.maxQueueSize ?? DEFAULT_MAX_QUEUE_SIZE, HARD_MAX_BATCH);
467
467
  const sdkVersion = config.sdkVersion ?? null;
468
468
  const packageName = config.packageName ?? null;
469
- const environment = config.environment ?? null;
469
+ const environment = config.environment ?? "production";
470
470
  const activeGtagIds = config.activeGtagIds ?? null;
471
471
  const endpointBase = config.endpoint.replace(/\/$/, "");
472
472
  const eventsUrl = `${endpointBase}/events`;
@@ -1140,7 +1140,7 @@ function GoogleAdsTracking(props) {
1140
1140
  import { usePathname, useSearchParams } from "next/navigation";
1141
1141
 
1142
1142
  // package.json
1143
- var version = "0.7.0";
1143
+ var version = "0.7.1";
1144
1144
 
1145
1145
  // src/factory.tsx
1146
1146
  import {