Skip to main content

Methods

The Monsido Script contains functions there can be utilized. They are located on window.monsido_functions.

NameArgumentsDescription
trackPageviewurl?: stringThe URL there should be tracked. If empty, it will use the current URL
trackEventeventCategory: string, eventAction: string, eventName: string, eventValue?: number
setCookieConsentNoneSet consent from the user that cookies are allowed. This will create a cookie
removeCookieConsentNoneRemove consent from user that cookies are allowed. This will delete the cookie
trackSearchsearchString: string, searchCount?: numberTrack searches on the website and count the amount of results on the search results page