2 Auth Tokens for Meta CAPI in Event Forwarding | Community
Skip to main content
Level 3
March 6, 2025
Solved

2 Auth Tokens for Meta CAPI in Event Forwarding

  • March 6, 2025
  • 1 reply
  • 983 views

Hi Everyone, 

I am facing issue in Event forwarding while using 2 different prod token. Its showing error related to data element where i am returning token based on condition.

If i use only 1 token directly in Meta extension its working fine.

 

Can anyone suggest.

 

Thank

Best answer by bjoern__koth

Yes, I am passing it as hard coded value.

Could you please share any reference, how to fetch Secret in data element.


Well basically you create the secrets first and then create a data element that references the secrets.

The "Secret" data element type is able to handle different tokens to cater for the different environment stages.

 

Then, you can just use the regular functionality to retrieve data elements

 

getDataElementValue('myToken')

 

 

1 reply

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
March 6, 2025

Hi @mrgupta 

what is the error message you are seeing?

Maybe the logic in your Data Element is not working as expected. I would start putting a debug message in there

Cheers from Switzerland!
mrguptaAuthor
Level 3
March 6, 2025

Thanks @bjoern__koth for reply. When I am returning single token with out any condition and using the same data element in Meta extension. Here is the error - 

when i use multiple pixel ID dynamically then following error is getting populated - 

 

 

 

 

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
March 7, 2025

And how does your custom code look?

Cheers from Switzerland!