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
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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')
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
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 -
And how does your custom code look?
Views
Replies
Total Likes
@bjoern__koth For token i am simply returning in this way, once this approach works then i was planning to add another token with condition.
For dynamic pixel ID following code i am using -
Ah, so you are hardcoding your tokens and don't use the Secrets approach Launch SSF brings?
Maybe try that approach and return the two data elements variations in your custom code instead.
Yes, I am passing it as hard coded value.
Could you please share any reference, how to fetch Secret in data element.
Views
Replies
Total Likes
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')
Views
Likes
Replies