Skip to content

Commit

Permalink
docs(analytics): make trackingId & analyticsMode public (#4300)
Browse files Browse the repository at this point in the history
CDX-1565

---------

Co-authored-by: jpmarceau <[email protected]>
  • Loading branch information
louis-bompart and jpmarceau authored Aug 23, 2024
1 parent c3337d5 commit bbb352c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
10 changes: 6 additions & 4 deletions packages/headless/src/app/engine-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,15 @@ export interface AnalyticsConfiguration {
documentLocation?: string;
/**
* The unique identifier of the tracking target.
* @internal
*/
trackingId?: string;
/**
* Specifies the analytics mode to use.
* By default, `legacy`.
* @internal
* The analytics client to use.
* - `legacy`: The legacy analytics client, i.e., the Coveo Analytics.js library.
* - `next`: The next analytics client, i.e., the Coveo Event Protocol with the Relay library.
*
* Starting at V3.0, the default value will be `next`.
* @default 'legacy'
*/
analyticsMode?: 'legacy' | 'next';
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,12 @@ export interface UpdateAnalyticsConfigurationActionCreatorPayload {
*/
trackingId?: string;
/**
* Specifies the analytics mode to use.
* By default, `legacy`.
* @internal
* The analytics client to use.
* - `legacy`: The legacy analytics client, i.e., the Coveo Analytics.js library.
* - `next`: The next analytics client, i.e., the Coveo Event Protocol with the Relay library.
*
* Starting at V3.0, the default value will be `next`.
* @default 'legacy'
*/
analyticsMode?: 'legacy' | 'next';
/**
Expand Down

0 comments on commit bbb352c

Please sign in to comment.