Problem: Include analytic JS code in production, but not in staging or development.
Attempted to detect production environment with:
{if "{site_url}" == "http://www.example.com/"}
... but that's not evaluating as true; attempted to debug to get correct value of {site_url}, but, the value I'm using looks to be correct (copied/pasted to be sure).
<!-- {site_url} --> outputs <!-- http://www.example.com/ -->
Is this a parse order issue, or is there sometime obvious I'm missing in my pre-coffee state this morning?
If it's parse order, how do you go about doing conditionals on the environment within your templates if not with {site_url}?
Note: I'll actually respond if you take the time to assist, and, I'll mark the correct answer as answered ;-)