Q:

setting up google analytics for an all-ajax site

i call trackpageview within the onstatechange callback (which i checked is being called), because in an all-ajax site, the states are the pages.
History.Adapter.bind(window, 'statechange', function() {
_gaq.push([ '_trackPageview', History.getState().url ]); 
}

i also have the necessary snippet in the  (again, which is only ever called once, because this site is all-ajax).
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-31081343-1']);
  _gaq.push(['_trackPageview']);

  (function() { ... })();

</script>

however, i do not see these pageviews on my google analytics account, neither in 'standard reporting' nor in the 'realtime'. 
why aren't these pageviews being tracked?

A:

(I assume you use History.js)
History.getState().url return the complete URL, begining with the protocol (http://...).
When using pageURL parameter with _trackPageview, you must use a beginning slash (/) to indicate the page URL (cf doc). Otherwise the request will not be taken into account by Google Analytics.

