Events: additional data into page view event
It is possible to pass custom_payload
object to 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.Use case
Recommended for breadcrumbs that are present on various sites tracked for pageviews. Collecting it in the separate custom event would mean sending 2x all events that may slow down processing.