Methods
The Monsido Script contains functions there can be utilized. They are located on window.monsido_functions
.
Name | Arguments | Description |
---|---|---|
trackPageview | url?: string | The URL there should be tracked. If empty, it will use the current URL |
trackEvent | eventCategory: string, eventAction: string, eventName: string, eventValue?: number | |
setCookieConsent | None | Set consent from the user that cookies are allowed. This will create a cookie |
removeCookieConsent | None | Remove consent from user that cookies are allowed. This will delete the cookie |
trackSearch | searchString: string, searchCount?: number | Track searches on the website and count the amount of results on the search results page |