How to map contextData variables in SiteCatalyst mobile app?

Silver Contributor
Silver Contributor
 
10 REPLIES 10

How to map contextData variables in SiteCatalyst mobile app?

Employee Emeritus
Hey Sebastian. You just manually type in your destination with a prefix of "c." after you select the data source, so if you wanted to create a context data variable called c.purchase you'd just type in: c.purchase The rest is done via processing rules.

How to map contextData variables in SiteCatalyst mobile app?

Silver Contributor
Silver Contributor
Son, thank you for the quick reply and answer. A follow-up to this question. In the appMeasurement for Javascript tag we had the following javascript in our do_plugins extension (example): c.purchase = purchaseType ? purchaseType.substring(0,3) : 'n_a'; What would you recommend doing for the mobile app tag to get the same output?

How to map contextData variables in SiteCatalyst mobile app?

Employee Emeritus
Hi Sebastian, talking it over with Jared, we're not sure exactly where purchaseType is coming from. Plugins typically are only for standard website use, they aren't really a part of mobile app deployments of the AppMeasurement mobile SDK. You may want to contact your account manager for us to get to the specifics of your use case.

How to map contextData variables in SiteCatalyst mobile app?

Silver Contributor
Silver Contributor
I will contact AM for sure. Thanks for the help.

How to map contextData variables in SiteCatalyst mobile app?

Gold Contributor
Gold Contributor
Hi Son, For some reason my SiteCat tag will send eVars and props but, with these instructions, will not send context data variables. Am I correct in thinking that context data variables can be used for non-mobile purposes? What could be going wrong? Writing an extension like s.contextData['foo'] = 'bar' does get the tag to send context data. Please advise. Thanks

How to map contextData variables in SiteCatalyst mobile app?

Employee Emeritus
Hi Sarah, it really depends on a lot of factors that are specific to your configuration. I would recommending contacting your AM or DM so we can look at your question in context.

How to map contextData variables in SiteCatalyst mobile app?

Gold Contributor
Gold Contributor
I will. So. specifics ignored, I should be able to use "c.contextdata" as a destination in my data mappings? for non-mobile. I have H.27

How to map contextData variables in SiteCatalyst mobile app?

Employee Emeritus
The 'c._____' naming convention being referred to here by Sebastian and me is using the Mobile App version of the AppMeasurement tag, which does not have an "H" version. You're using the desktop version of the SiteCatalyst tag and the rules for that are slightly different. Are you trying to do context vars for a desktop/mobile website?

How to map contextData variables in SiteCatalyst mobile app?

Gold Contributor
Gold Contributor
Ok. thank you for answering. that is what I suspected. I am trying to do context data variables on a desktop website (for a few reasons) and presume Tealium has a solution for this other than for me to write "s.contextData['foo'] = b.data_layer_element" for each event/eVar. But I could not find anything on how to do this except this post.

How to map contextData variables in SiteCatalyst mobile app?

Public