i have a website.
i also then have a carbon copy sandbox test version of the site.
i am using google analytics.
is there anyway of getting the current url so i can see if /sanbox/ is in the url, so i can leave out the analytics code that goes at the bottom of the page?
this would allow me to copy and paste files rather than having to make the changes to both live and test code(to avoid test site vewings amending my google stats)
any ideas how i can get the url i am currently on?