... | @@ -21,6 +21,13 @@ eventStructure = { |
... | @@ -21,6 +21,13 @@ eventStructure = { |
|
urls: string[], // the URLs on the pages on which the event will be used in (accepts the `*` wildcard, for example `["https://domain.com/*"]` will make the event available on every page of _domain.com_)
|
|
urls: string[], // the URLs on the pages on which the event will be used in (accepts the `*` wildcard, for example `["https://domain.com/*"]` will make the event available on every page of _domain.com_)
|
|
type: eventType, // like `eventTypes.onPage`
|
|
type: eventType, // like `eventTypes.onPage`
|
|
eventId: string, // the event identifier
|
|
eventId: string, // the event identifier
|
|
|
|
eventIds: {
|
|
|
|
selector?: string,
|
|
|
|
attribute?: string,
|
|
|
|
prefix: string,
|
|
|
|
value?: string,
|
|
|
|
callback?: (value) => string | number,
|
|
|
|
}[],
|
|
categories: string[], // any number of categories can be added to an event
|
|
categories: string[], // any number of categories can be added to an event
|
|
selector: string, // CSS selector
|
|
selector: string, // CSS selector
|
|
verifyCallback?: () => boolean, // event verification function, if it returns `false` the event will not be sent
|
|
verifyCallback?: () => boolean, // event verification function, if it returns `false` the event will not be sent
|
... | | ... | |