Last active
October 1, 2017 17:57
-
-
Save dherbold/4370f3b6d68b1094fa301574c4c1fd20 to your computer and use it in GitHub Desktop.
set unique keys and states (etc) per Pantheon environment detection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (defined('PANTHEON_ENVIRONMENT')) { | |
if (PANTHEON_ENVIRONMENT == 'dev') { | |
// Google Analytics. | |
$conf['googleanalytics_account'] = 'UA-83305450-1'; | |
// SalesForce Middleware | |
$conf['asu_rfi_form_auth_key'] = 'G8SbroXqxteS6BAjJcjKkic7dUahiWyN'; | |
} | |
else if (PANTHEON_ENVIRONMENT == 'test') { | |
// Google Analytics. | |
$conf['googleanalytics_account'] = 'UA-78103002-1'; | |
// SalesForce Middleware | |
$conf['asu_rfi_form_auth_key'] = '6mGiGsPv5WRavbhzU5JexYgEKRESadT8'; | |
} | |
else if (PANTHEON_ENVIRONMENT == 'live') { | |
// Google Analytics. | |
$conf['googleanalytics_account'] = 'UA-4857215-6'; | |
// SalesForce Middleware | |
$conf['asu_rfi_form_auth_key'] = 'zcEw7xTc8qzJR7oXCQun4b73w5pjHZuS'; | |
} | |
// all other multidev and other sites don't get these keys | |
else { | |
// Google Analytics. | |
$conf['googleanalytics_account'] = ''; | |
// SalesForce Middleware | |
$conf['asu_rfi_form_auth_key'] = ''; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment