Zend certified PHP/Magento developer

Braintree API Client Misconfigured: the analytics.url provided in the gateway configuration is invalid

Not sure where this is coming from but from today my sandbox just start to spiting out this error. anyone has experience this? what is the fix.

I can see the is due to allowed domain which was never an issue specially on sandbox :

if (gw.analytics && !isAllowedDomain(gw.analytics.url)) {
throw new Error('Braintree API Client Misconfigured: the analytics.url provided in the gateway configuration is invalid.');

}