Sha256: 1370c908ec30aa03dcdae14f365812f00a4fb8c061b66568e57c06254225749b
Contents?: true
Size: 743 Bytes
Versions: 16
Compression:
Stored size: 743 Bytes
Contents
module Caboodle class Analytics < Caboodle::Kit add_to_layout "after_body" => "<script type=\"text/javascript\"> var _gaq = _gaq || []; _gaq.push(['_setAccount', '#{Caboodle::Site.analytics_id}']); _gaq.push(['_setDomainName', 'none']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_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); })(); </script>" required [:analytics_id] end end
Version data entries
16 entries across 16 versions & 1 rubygems