We have several Opinion Lab survey on our site deployed via Tealium.
In the main profile we keep main js code.
We also have a separate profile which is used solely for mapping Opinion Lab variables to Adobe SiteCatalyst.
In this profile we have an Set Data Values extension (scoped to SiteCat only) where we map Tealium variables to Opinion Lab code snippets, e.g.
oo_ccid(js) equal to JS: OnlineOpinion.Get("ccid") - card ID number
oo_var1(js) equal to JS: OnlineOpinion.Get("answer1")
oo_var2(js) equal to JS: OnlineOpinion.Get("answer2")
oo_var3(js) equal to JS: OnlineOpinion.Get("answer3")
etc
The problem is that when OpinionLab users create new surveys where they use questions in the different order the data gets mapped incorrectly in the SiteCat.
I tried to create one more Set Data Values extension where I set a condition oo_ccid(js) equals cardID, e.g. 11111 and mapped (e.g. question 1 now goes third)
oo_var1(js) equal to JS: OnlineOpinion.Get("answer3") to keep the existing mapping to SiteCat in the tag working (e.g. oo_var1(js) to eVar1).
When I tested this extension it didn't have any effect. The mapping remained broken.
I believe this can be done in Tealium. Could you please point me in the right direction.
Thanks in advance.