Sha256: aae40e9627f6b914d696435e40a2cb9bb5970639fff1fe170be814c6290ec902
Contents?: true
Size: 804 Bytes
Versions: 3
Compression:
Stored size: 804 Bytes
Contents
<% file = @options.debug ? 'u/ga_debug' : 'ga' gaq = [] gaq << ['_setAccount', "#{@options.tracking_id}"] gaq << ['_setDomainName', "#{@options.domain_name}"] if @options.domain_name gaq << ['_setAllowLinker', true] if @options.allow_linker gaq << ['_gat._anonymizeIp'] if @options.anonymize_ip if build? || development? && @options.development gaq << ['_trackPageview'] end %> var _gaq = _gaq || []; <%= gaq.map! { |x| "_gaq.push(#{x});" }.join("\n ") %> (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? '//ssl' : '//www') + '.google-analytics.com/<%= file %>.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
Version data entries
3 entries across 3 versions & 1 rubygems