Page views: How to pass additional data into page view event
It is possible to pass custom_payload
object to MeiroEvents.track("pageView")
method.
Below an example of the code where custom_payload
is customizable object structure holding additional data:
MeiroEvents.track("pageView", {
custom_payload: {
whatever: "whatever value",
}
});
MeiroEvents.track("pageView")
method is called by default in Meiro Events deploy script and developer have to modify/ include custom payload there. It does not have to be called for the second time from different part of the website.