By default, Google Analytics tracks the current URL for every request. Sometimes you will want to track another URL instead, for example:
Luckily the Analytics code snippet allows you to freely choose what path is being tracked. Simple change this:
ga('send', 'pageview');
... to this:
ga('send', 'pageview', { 'page': '/YOUR-CUSTOM-PATH' });
With Unpoly you want to trigger an Analytics pageview whenever a major content fragment is replaced. See Unpoly instructions here.
Change this:
_gaq.push(['_trackPageview']);
... to this:
_gaq.push(['_trackPageview', '/YOUR-CUSTOM-PATH']);