I am working with sage 8.5.2, and I am trying to use barba js for the transitions between one page and the other.
I installed barba with bower with this command: bower install --save luruke/barba.js.
I added the markup structure in the base.php and the relevant js (Barba.Pjax.start(); ) in the main.js.
it seems to work, infact I can see that it keeps the header and the footer and it updates just the content inside the “barba-wrapper”.
but I have an issue, it doesn’t update the body classes for this reason I think that it doesn’t fire the script for that specific page.
anyone had my similar issue?
do you have any ideas or recommendation?
How can I update Google Analytics (or any other tracking sytem)? It’s enough to listen to the event initStateChange and update Google analytics accordingly.