5.6K members online now
5.6K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Analyst dynamic generated pages.

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I'm using already google analytic for my website and its working good but 

some of pages on my website are generated dynamically, These pages are using AJAX and HTML History API. Problem is that dynamically generated pages are not counted.

So, how can I analyst those pages.

This is site URL You can check it for better understanding.

On watch.php page when you click on next videos these page is generated via AJAX and HTML History API. URL changed but not redirect may be that's why google analytic can not analyst this.


Re: Analyst dynamic generated pages.

Explorer ✭ ✭ ☆
# 2
Explorer ✭ ✭ ☆
I think that the best case scenario in your particular situation would be to implement Universal Analytics through Google Tag Manger and then use History Listener that is built-in there. It works by utilizing popstate and pushstate method. Simo Ahava wrote a great explanation tutorial here:

I think that you should give it a try especially that History Listener was designed to situation similar to yours and uses similar API methods (window.history API) as you have implemented on your website.