var env = utils.getBuildInfo().environment;
var region = arc.event.xdm._polo.region;
if (region == 'us') {
return _satellite.getVar("googleOAuth2Secret");
}
else if(region.match(/(au|tw|my|sg|hk|jp|kr)/) != null) {
return "";
}
else { //EU access token
return _satellite.getVar("emeaGoogleAuthSecret");
}
Failed to execute "Send Conversion". Failed to execute module for data element "googleAuthSecretChooser". _satellite is not defined
ReferenceError: Failed to execute "Send Conversion".
Failed to execute module for data element "googleAuthSecretChooser". _satellite is not defined at Object.source (worker.js:2:40457)
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Ben_Step - To access the value of a data element in custom code, use the getDataElementValue method.
Reference: https://experienceleague.adobe.com/docs/experience-platform/tags/extensions/server/core/overview.htm...
Views
Replies
Total Likes
Hi @Ben_Step - To access the value of a data element in custom code, use the getDataElementValue method.
Reference: https://experienceleague.adobe.com/docs/experience-platform/tags/extensions/server/core/overview.htm...
Views
Replies
Total Likes
Perfect, thanks
Views
Replies
Total Likes