Using Environment to disable tracking scripts

Hello, I'm trying to figure out the best way to do this... I'd like to have a partial that included all of my tracking information for Google Analytics, Facebook, etc, but I don't want my local testing to count against it. Would there be a way to check the environment and disable that partial, and if so what's the syntax for it? I was checking the docs and was confused.

For that matter, I'd also like to disable tracking data for my logged-in content creators while I'm at it.

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
3 Replies
2 Followers