... | ... | @@ -17,12 +17,12 @@ The events can be defined inside a configuration file structured like this: |
|
|
## Event object structure
|
|
|
|
|
|
```typescript
|
|
|
{
|
|
|
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`
|
|
|
eventId: string, // the event identifier
|
|
|
categories: string[], // any number of categories can be added to an event
|
|
|
selector: string, // CSS selector
|
|
|
verifyCallback?: () => boolean, // event verification function, if it returns `false` the event will not be sent
|
|
|
},
|
|
|
type Event = {
|
|
|
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`
|
|
|
eventId: string; // the event identifier
|
|
|
categories: string[]; // any number of categories can be added to an event
|
|
|
selector: string; // CSS selector
|
|
|
verifyCallback?: () => boolean; // event verification function, if it returns `false` the event will not be sent
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |