Analytics

If you want to add analytics to your site, you’ll need to likely add a script to your site.

You can do that in the /source/_header.erb partial file:

<% if build? %>
    <%# Include your analytics script here so that its only active on your final build. %>
<% end %>

Put your analytics code between the if/end statement. This will ensure that your analytics are only active on your production build.