pull/113/head
Thibaut 11 years ago
parent b872687864
commit 9ab3a394e9

@ -42,6 +42,7 @@ page.show = (path, state) ->
page.dispatch(context) page.dispatch(context)
context.pushState() context.pushState()
ga?('send', 'pageview', location.pathname + location.search + location.hash) ga?('send', 'pageview', location.pathname + location.search + location.hash)
_gauges?.push(['track'])
context context
page.replace = (path, state, skipDispatch, init) -> page.replace = (path, state, skipDispatch, init) ->
@ -51,6 +52,7 @@ page.replace = (path, state, skipDispatch, init) ->
page.dispatch(context) unless skipDispatch page.dispatch(context) unless skipDispatch
context.replaceState() context.replaceState()
ga?('send', 'pageview', location.pathname + location.search + location.hash) unless init ga?('send', 'pageview', location.pathname + location.search + location.hash) unless init
_gauges?.push(['track'])
context context
page.dispatch = (context) -> page.dispatch = (context) ->

@ -36,4 +36,10 @@
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-5544833-12', 'devdocs.io'); ga('create', 'UA-5544833-12', 'devdocs.io');
ga('send', 'pageview'); ga('send', 'pageview');
</script><script>
var _gauges=_gauges||[];!function(){var a=document.createElement("script");
a.type="text/javascript",a.async=!0,a.id="gauges-tracker",
a.setAttribute("data-site-id","51c15f82613f5d7819000067"),
a.src="//secure.gaug.es/track.js";var b=document.getElementsByTagName("script")[0];
b.parentNode.insertBefore(a,b)}();
</script><% end %> </script><% end %>

Loading…
Cancel
Save