How can I sum up the values of different number attributes in Tealium

Bronze Contributor
Bronze Contributor

Hi,

I have created 6 different number attributes, that are enriched based on certain event attributes. However,  as a next step I need to sum up the values of these number attributes into a new number attribute.

At the moment, I can sum only two number attributes into a another number attribute. How do I do the same for more than two. Additionally, I checked the Array, tally and timeline attributes, but was unable to figure out how these could help me.

Any help will be appreciated.

--

Thank you

Nirav

1 REPLY 1

How can I sum up the values of different number attributes in Tealium

Tealium Expert
Tealium Expert

Hi , i have done this before but by using IQ. So you can read the audiencestream data in the datalayer from IQ and then write a custom JS extensions in IQ to find the variables you want and then use javascript to do the calculation and then send the calculation back into the datalayer for audiencestream to update.
Although the number can have a delay in generating real time because it kind of needs to go into some loop.

Damian Savvides
Public