Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

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

Avatar

Level 2

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

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.