learning-layers / timeliner

MIT License
0 stars 0 forks source link

To add Google Analytics to Index and Project view pages #57

Open vtomberg opened 8 years ago

vtomberg commented 8 years ago

To add Google Analytics to Index and Project view pages

pjotrsavitski commented 8 years ago

Just adding the GA code will probably not help much as the tracking might not work in case of internal routing of the Angular app.

This thread has some useful information on matter (including a possible simple solution to our router):http://stackoverflow.com/questions/10713708/tracking-google-analytics-page-views-with-angular-js The described solution would allow to track all the navigation within the app.

Please make sure that it currently only was about tracking the page view as someone visited the page. GA has a lot more possibilities.

Is this issue only about tracking the the page view/visit on just these two pages?

pjotrsavitski commented 8 years ago

This still needs some testing and could then be closed.

pjotrsavitski commented 8 years ago

Currently, GA tracks all pages. If it should exclude the administration ones, then some code changes might be needed.

The URL's have an issue: /#/ is missing, thus opening some page straight from GA would fail.