I included a tracking script at the bottom of my Page.ss, like this:
<% if CurrentMember %>
<% else %>
<% if URLSegment != Security %>
<% include TrackingCode %>
<% end_if %>
<% end_if %>
To avoid the tracking of editors I wrapped it up with the login check. Everything works great, but when I'm on my local dev copy the script gets included again, tracking me....
So my question is if there is a way to check the environment type within the template, or do I have to put everything into the Page_Controller?