Acquia Optimize

Methods

The Optimize Script contains functions that can be utilized. They are located on window.monsido_functions.

NameArgumentsDescription
trackPageviewurl?: stringThe URL that 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 number of results on the search results page.

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Acquia Help

Filter by product:

Common questions