Sha256: 246f9ddbad2b012ae6be816ab2b7f9f486c6f52cbd7c128a87e416825e0f675e
Contents?: true
Size: 607 Bytes
Versions: 3
Compression:
Stored size: 607 Bytes
Contents
module Caboodle class Analytics < Caboodle::Kit add_to_layout "after_body" => "<script type=\"text/javascript\"> var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\"); document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\")); </script> <script type=\"text/javascript\"> try { var pageTracker = _gat._getTracker(\"#{Caboodle::Site.analytics_id}\"); pageTracker._trackPageview(); } catch(err) {} </script>" required [:analytics_id] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
caboodle-0.1.6 | lib/caboodle/kits/analytics/analytics.rb |
caboodle-0.1.5 | lib/caboodle/kits/analytics/analytics.rb |
caboodle-0.1.4 | lib/caboodle/kits/analytics/analytics.rb |