Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 728 Bytes

File metadata and controls

17 lines (10 loc) · 728 Bytes

Home > @yext/analytics > reportBrowserAnalytics

reportBrowserAnalytics() function

An alternative entry point for the Yext Analytics Events SDK, currently used by Google Tag Manager. This method reads the config and payload from the variable analyticsEventPayload stored in the global window object. The config and payload are then passed to the report function to be sent to the Yext Analytics Events API.

Signature:

export declare function reportBrowserAnalytics(): Promise<string>;

Returns:

Promise<string>