Q:

Refreshing meta data when using AJAX page transitions

I have created AJAX page transitions based on:
https://designbycosmic.com/journal/craft-cms-ajax-page-transitions-with-history-pushstate
It's all working nicely, the main content of the site (everything except the header) is loaded through ajax with a page transition using velocity.js.
My question is how would I go about getting all the metadata (or intact any of the information stored in  to refresh for each page. At the moment the meta data is stuck with whatever is there when the browser loads.
I know this isn't specifically craft but any help would be appreciated.
Scott

A:

You'll need to send the new pageview to Google Analytics manually on your ajax success. You'll want to read the Google documentation page, but it can be as simple as added the following line where ga_page is the new url:
ga( 'send', 'pageview', ga_page );

