Expand my Community achievements bar.

The Analytics Community Lens news letter for February 2024 is now here! Come see upcoming events and what's been going on in the community!

Reg Mobile Analytics


Level 1

Is there a way the contextdata can be collected into data elements in launch?

currently, we use processing rules but I do see Adobe launch offers us to leverage data elements but I have not been able to figure out a way to do so.

My goal is to capture contextdata into data elements so that we can then create rules directly in launch.

2 Replies


Community Advisor

While I think you can grab context variable, I think at most you can do with them is concatenate them and append to the tracking call as yet another context variable... I've never seen any way to set context variables directly as props or eVars inside of the mobile app Launch (though they have added a few things in the last 3 years that they didn't have when we originally set up our apps)... I have not heard of anything...


To attach additional context data, you can use the "Attach Data" action in the Mobile Core, then write the JSON payload to attach your new context values:


(this sample is a hardcoded value, but you can pass Data Elements with "{%%value%%}" )


It might be possible add props or eVars directly (outside of contextdata), but I've never tested this, potentially (and I do mean potentially.. this really needs to be tested), like so:

    "&&eVar1" : "{%%My Context%%}",
    "contextdata": {
        "context1": "some-value"



You can get your context into Data Elements like so:




Here is some more info on the Attach Data action: https://developer.adobe.com/client-sdks/documentation/user-guides/attach-data/ 



However, processing rules still might be better... Launch has no logic rules.. no "if this value is set, then do X", no "if the value is X, then do Y", etc... 


As much as processing rules is out of date and cumbersome, I think you will still have a better chance of building your app logic there then inside Launch, unless your app is very simple... 


Level 1

Thank you, Jennifer! Appreciate it.
Yes, I have been using processing rules and like you said these are cumbersome but effective.

However, as Adobe has provided the options to link data element to context data, was curious if we could use it.


Thanks again! Good day!