I have a localised site. I want to add in kiss metric and google analytic tracking codes for each locale, however, I don't want the tracking codes to output in staging and dev environments.
- I considered using globals, but then I'd need a way to print the global in the template if the environment is production.
- I have also considered using environment variables for in general.php file for the production environment and print the environment variable in the template.
Does anyone have advice on best practice for this.