How to track multiple variables for a page/link with the latest Omniture SDK?

Avatar

Avatar
Validate 1
Level 1
nag218
Level 1

Likes

3 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 1
nag218
Level 1

Likes

3 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
nag218
Level 1

15-10-2015

Hi Team, 

We are able to use the latest Omniture SDK and track single variable with below code, But for us the requirement is to track multiple parameters against page name. For ex: we need to track the City, Zipcode, customerNumber etc.. With the new module we are unable to findout how to pass multiple parameters to a single call as it is accepting only object as a value. Can you please let us know how should we handle this type of scenarios ?

Omniture.trackState(‘Home’, {City: ‘Hyderabad’}

Please find below working code with the previous omniture module, 

Var input = [{ city : ‘hyderabad’}, {zip : ‘500020’}, {customer : ‘U64133390’}]; 

for(var param in input){ 
omniture[param] = input[param] 


omniture.track({}); 

So in the latest omniture module how should we pass array of values to omniture as it is not accepting the array value. 

// New method to track 
Omniture.trackState(‘page’, {key: ‘value’}) 

Thanks, 
Nag

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
Gigazelle
Employee

Likes

473 likes

Total Posts

1,947 posts

Correct reply

740 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile

Avatar
Coach
Employee
Gigazelle
Employee

Likes

473 likes

Total Posts

1,947 posts

Correct reply

740 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile
Gigazelle
Employee

15-10-2015

Hi Nag,

I'd recommend using contextData variables outlined here:

https://marketing.adobe.com/resources/help/en_US/mobile/android/proc_rules.html

Then you can use processing rules to assign them to custom variables for use in reporting.

Answers (0)