Sha256: a1d13fc9dad95cd0cdccf2ea0a09ba755bcee1e7126f709f7e0db08e203a7f7c

Contents?: true

Size: 1.21 KB

Versions: 31

Compression:

Stored size: 1.21 KB

Contents

<script>
  !function(g,s,q,r,d){r=g[r]=g[r]||function(){(r.q=r.q||[]).push(
  arguments)};d=s.createElement(q);q=s.getElementsByTagName(q)[0];
  d.src='//d1l6p2sc9645hc.cloudfront.net/tracker.js';q.parentNode.
  insertBefore(d,q)}(window,document,'script','_gs');
  <% if tracker %>
  _gs('<%= tracker %>');
  <% end %>

  <% if trackers %>
  <% trackers.each do |name, code| %>
  _gs('<%= code %>', '<%= name %>');
  <% end %>
  <% end %>

  <% if options[:anonymize_ip] %>
    _gs('set', 'anonymizeIp', <%= options[:anonymize_ip] %>);
  <% end %>

  <% if options[:cookie_domain] %>
    _gs('set', 'cookieDomain', '<%= options[:cookie_domain] %>');
  <% end %>

  <% if options[:use_cookies] %>
    _gs('set', 'useCookies', <%= options[:use_cookies] %>);
  <% end %>

  <% if options[:track_hash] %>
    _gs('set', 'trackHash', <%= options[:track_hash] %>);
  <% end %>

  <% if options[:track_local] %>
    _gs('set', 'trackLocal', <%= options[:track_local] %>);
  <% end %>

  <% if options[:track_params] %>
    _gs('set', 'trackParams', <%= options[:track_params] %>);
  <% end %>

  <% if visitor_name %>
  _gs(<%= visitor_name.write() %>);
  <% end %>

  <% if visitor_info %>
  _gs(<%= visitor_info.write() %>);
  <% end %>
</script>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
rack-tracker-1.13.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.12.1 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.12.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.11.2 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.11.1 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.11.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.10.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.9.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.8.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.7.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.6.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.5.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.4.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.3.1 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.3.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.2.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.1.0 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.0.2 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.0.1 lib/rack/tracker/go_squared/template/go_squared.erb
rack-tracker-1.0.0 lib/rack/tracker/go_squared/template/go_squared.erb