Closed Buliwyfa closed 7 years ago
It's not clear to me :( how can I update Google Analytics.
I guessing something like this:
Pjax.load({ if (typeof ga === 'function') { ga('send', 'pageview', location.pathname); } });
However, not sure how to call GA after the new content is loaded via Pjax
Thanks again!!
$('.pjax-container').on('pjax:end', function() { ga('send', 'pageview', location.pathname); });
thx
Actually not sure if the above will work as it's for defunkt pjax
See #20
It's not clear to me :( how can I update Google Analytics.
I guessing something like this:
Pjax.load({ if (typeof ga === 'function') { ga('send', 'pageview', location.pathname); } });
However, not sure how to call GA after the new content is loaded via Pjax
Thanks again!!