Last active
August 26, 2016 03:33
-
-
Save mediavrog/f53df7c6dd9737c89e13 to your computer and use it in GitHub Desktop.
Revisions
-
mediavrog revised this gist
Oct 7, 2015 . No changes.There are no files selected for viewing
-
mediavrog created this gist
Oct 7, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ # add the tracking code normally to your layout; then include this in every page $(document).on 'page:change', -> if window.ga? ga('send', 'pageview'); else if window._gaq? _gaq.push(['_trackPageview']) else if window.pageTracker? pageTracker._trackPageview()