Hi all,
New to launch so apologies if this is a basic question! Is there a way to use context data that already exists to populate eVars and props using adobe launch rather than the Analytics interface?
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
There are many benefits, flexibility, and conveniences for other projects/developers to just continue using context data and using the Analytics processing to do the mapping, as @yuhuisg suggests.
However, to answer your question, it is relatively simple to set the variables directly in custom code (probably within the same rule as the beacon fire):
First, make sure the s object is set globally in the Analytics extension and then write custom code before firing the beacon that appears as the following:
s.propn = s.contextData["exampleDatan"];
s.evarn = s.contextData["moreExampleDatan"];
I haven't tried it myself, but I suppose it can be done.
On the other hand, context data is meant to be used with Analytics directly. So you need to consider if your future self or your successor(s) will be able to remember how you're using context data with Launch instead.
There are many benefits, flexibility, and conveniences for other projects/developers to just continue using context data and using the Analytics processing to do the mapping, as @yuhuisg suggests.
However, to answer your question, it is relatively simple to set the variables directly in custom code (probably within the same rule as the beacon fire):
First, make sure the s object is set globally in the Analytics extension and then write custom code before firing the beacon that appears as the following:
s.propn = s.contextData["exampleDatan"];
s.evarn = s.contextData["moreExampleDatan"];
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies