-
Notifications
You must be signed in to change notification settings - Fork 28
Hash Change
Many single page applications update the URL on view changes. We can use these URL updates to trigger an mbox call. Keep in mind that since the mbox call will be made asynchronously, in-parallel with your view change visitors may experience flicker when the mbox response replaces default content.
##Example: Put this code after at.js to trigger mbox calls on pushState/hashchange:
Data Layer: Update your data layer before processing the URL change, if possible, to maximize potential usage with Target.
DTM: Event-based rules using the "pushState/hashChange" condition can be used to trigger mbox calls instead of the Example code below. There is an additional roundtrip needed to retrieve code from DTM before making the mbox call.
##Demo: hashChange Example
These extensions are provided free to developers as a starting point to integrate at.js with their Single Page Application. Extensions are not always updated for the latest at.js version. Customization may be required to integrate successfully with your single page app.
Issues: place send feedback and questions through Github issues. We will respond as best we can. Please note, these extensions are not supported by Adobe Client Care or Target Engineering.