How to track a single page web application?

It’s interesting how one-page web application could be tracked so that you can see what the user is doing in your application, what β€œpages” he has visited, etc.

Like Google Analytics with statistics for many things.

+6
source share
2 answers

Google Analytics is great for this. Check out custom events: http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html

It takes a lot more work than install-and-forget tracking, which you can do with traditional websites, but it's also pretty easy.

+6
source

It will not "just work", you need to call trackPageView so that the requests are counted as pageviews and include all the visitor information that will be included (not trackEvent). This method is an old but popular ajax navigation solution showing how to call trackPageView. It is called immediately after the content from the new URL is entered on the page, so the equivalent in a structure such as Backbone.js will be displayed during initialization, for example, the one suggested in this guide .

+3
source

Source: https://habr.com/ru/post/907361/


All Articles