Skip to content

Commit

Permalink
added google analytics tracking code to documentation pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hayes committed Jul 3, 2012
1 parent 65b2934 commit eae7cfb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions marketing/docs/includes/_documentation_foot.php
Expand Up @@ -78,6 +78,25 @@
<script src="../javascripts/foundation/app.js"></script>
<script src="presentation.js"></script>
<script src="http://www.zurb.com/assets/zurb.mega-drop.js"></script>
<script>
var _gaq = _gaq || [];
_gaq.push(
['_setAccount', 'UA-2195009-2'],
['_trackPageview'],
['b._setAccount', 'UA-2195009-27'],
['b._trackPageview']
);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
$(document).on('click', '.src-download', function (event) {
_gaq.push(['_trackEvent', 'Foundation', 'Downloaded']);
});
</script>
</body>
</html>

0 comments on commit eae7cfb

Please sign in to comment.