webhook/webhook-generate

Detect Local Host

Closed this issue · 1 comments

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()

Finished, the global variable production does this now