How to track multiple variables for a page/link with the latest Omniture SDK? | Community
Skip to main content
nag218
Level 2
October 16, 2015
Solved

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

  • October 16, 2015
  • 1 reply
  • 1201 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gigazelle

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.

1 reply

Gigazelle
Adobe Employee
GigazelleAdobe EmployeeAccepted solution
Adobe Employee
October 16, 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.