Detect Local Host
Closed this issue · 1 comments
snide commented
http://forums.webhook.com/t/how-can-we-detect-the-environment-i-e-localhost-dev-vs-production/356
If Dev/Localhost Then
- use Google Tag Manager ID: 12345
Else (is Production) Then - user Google Tag Manager ID: 98765
How do we detect this within the webhook templates?
I'm looking for something like:
getCurrentEnvironment()
LtSquigs commented
Finished, the global variable production
does this now