Created
April 13, 2012 07:59
-
-
Save Jayphen/2374987 to your computer and use it in GitHub Desktop.
Yield custom trackPageview parameters for Google Analytics
This file contains 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 characters
-if content_for?(:track_page_view) | |
="_gaq.push(['_trackPageview', #{yield(:track_page_view).gsub(/\s+/, '')} ]);" | |
-else | |
_gaq.push(['_trackPageview']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment