I'm trying to implement Google Analytics. I have different tracking codes for each of my environments (dev, prod, etc). I don't have access to environments.ts from index.html as far as I know.
I tried loading the script from inside Angular, but then I lost tracking of how long the app's initial load took. I also saw that .angular-cli.json has a scripts section that I could possibly use, but I don't know how I'd switch which script I run based on the environment.
How can I set this up?