UNPKG

@segment/analytics-next

Version:

Analytics Next (aka Analytics 2.0) is the latest version of Segment’s JavaScript SDK - enabling you to send your data to any tool without having to learn, test, or use a new API every time.

25 lines 951 B
import type { Context } from '../../core/context'; import type { Plugin } from '../../core/plugin'; import { Campaign, PluginType } from '@segment/analytics-core'; import { Analytics } from '../../core/analytics'; export declare function utm(query: string): Campaign; export declare function ampId(): string | undefined; declare class EnvironmentEnrichmentPlugin implements Plugin { private instance; private userAgentData; name: string; type: PluginType; version: string; isLoaded: () => boolean; load: (_ctx: Context, instance: Analytics) => Promise<void>; private enrich; track: (ctx: Context) => Context; identify: (ctx: Context) => Context; page: (ctx: Context) => Context; group: (ctx: Context) => Context; alias: (ctx: Context) => Context; screen: (ctx: Context) => Context; } export declare const envEnrichment: EnvironmentEnrichmentPlugin; export {}; //# sourceMappingURL=index.d.ts.map