Pass mbox params after each view change for Adobe Target SPA
Hello community,
I have a client that have a site built on Next.js. It has tealium IQ as the tag manager and a datalayer already setup with page variables that are updated on each view change without a full page reload.
Recently, they want to add Adobe Target to the web. I am struggling on how to add mbox parameters every time the view (page) changes as there is no page reload and the adobe.target.triggerView() function only accepts the viewName as arguments and no params can be added to the function.
I have seen on other React like websites that with every "notifications" request (each time the triggerView is executed) the mbox params like page_category or profile params are updated without a full page reload or a target-global-mbox call.
How can I achieve here the same behaviour?
Thanks a lot!