$p("resetPageview")

$p("resetPageview"): (Object) -> undefined

In a non-Simple Single Page Application, a new page isn't loaded despite the fact that user browses through various contents. There are various functions that our SDK automatically handles on a standard web flow - such as resetting various timers for measuring user activity time and initializing/updating cookies.

This function should be invoked when a user transitions to a new "page" within the non-Simple Single Page Application. Invoking this function manually triggers those initializations along with $p("send","pageview"), and the context object will be passed in as a context object of send function.

$p("resetPageview")

📘

Simple Single Page Application

Simple Single Page Application refers to an SPA using PushState or hash based routing.