Skip to content

Commit

Permalink
fix(analytics-types): update element interactions options
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 committed Aug 30, 2024
1 parent 1d08b9f commit 48bbd66
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/analytics-types/src/element-interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ export const DEFAULT_CSS_SELECTOR_ALLOWLIST = [
];

/**
* Default prefix to allo the plugin to capture data attributes as an event property.
* Default prefix to allow the plugin to capture data attributes as an event property.
*/
export const DEFAULT_DATA_ATTRIBUTE_PREFIX = 'data-amp-track-';

/**
* Default list of elements on the page should be tracked when the page changes.
*/
export const DEFAULT_ACTION_CLICK_ALLOWLIST = ['div', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];

export interface ElementInteractionsOptions {
Expand Down Expand Up @@ -86,8 +90,3 @@ export interface Messenger {
logger?: Logger;
setup: () => void;
}

interface Element {
id: string;
className: string;
}

0 comments on commit 48bbd66

Please sign in to comment.