Tracking implementation for Single page applications (SPA)

Single-Page Applications (SPA) become more and more popular. They are built using Ember, React, Angular, Backbone, Meteor or something similar.

Bad news about SPA is that adding default Universal Analytics tracking code to such applications will not result in having any valuable data in the Google Analytics account. The reason is that SPA does not generate any pageviews by defaults and pageview hits are not send to Universal Analytics. If no customization is applied to the analytics tracking code one will have sessions with only one pageview and extremely high bounce rate.