A message is published to this topic when a page has a view change or a context change. A view change means that the page type has changed, for example, from /home to /checkout. In this case, both the layout and the data change. A context change occurs when the page type remains the same but the data the page contains changes, for example, /product/prod1 to /product/prod2.

$.Topic(PubSub.topicNames.PAGE_CHANGED).publish(pageEventData);
Arguments

pageEventData: A JavaScript object that includes data related to the page change event, for example:

{
    pageId:"category"
    contextId:"cat60041"
    seoslug:"controllers"
    previousContextId:"Product_36Exy"

}

The properties in the JavaScript object include:

Memory enabled

Yes


Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices