Highlighted

Hit based calculation of profile score

TimWaijers
Occasional Contributor
TimWaijers Occasional Contributor

We want to build our audiences based on traits and scoring, is it possible to enrich data by performing calculations on it?

The idea is that at each new hit a specific value is recalculated based on it's previous value and the value that comes with the current hit.

Is it possible to do these calculations within AudienceStream?

3 REPLIES 3

Hit based calculation of profile score

Tealium Employee

Hi @TimWaijers

It is indeed possible to calculate a scoring model in AudienceStream.

If you just wish to have a Visitor/Visit number that is incremented by an event attribute, that is fine.  More complex scoring methods are also possible.

If you wish to give a bit more detail on what your scoring method is, I can guide you further

Mark

Hit based calculation of profile score

TimWaijers
Occasional Contributor
TimWaijers Occasional Contributor

Hi Mark, thanks for your reply. 

We'd like to use a relatively simple algorithm that calculates the new score based on the current score and some other factors (such as time passed since last calculation).

Something like this: x= (x/2 + y*(z-z*0.5))/4

so the question really is; what mathmatical operators can we use and how can we use them?

Hit based calculation of profile score

Tealium Employee

Hi @TimWaijers,

That score should be calculable in AudienceStream, although you won't be able to do it in a single "line of code".  You will need to do it step-wise, using intermediate attributes.

The mathematical operators that are available for a Number Attribute at the Visitor or Visit level are;

Increment / decrement by constant or other number
Ratio / Product of two numbers
Difference / Sum of two numbers
Set Number to other number
Calculate Change in other Number

And from Dates at the Visitor or Visit level, you can calculate into a number either the difference in two dates in minutes, hours, days, etc or the change in a single date based on this event in minutes, hours, days etc

The list above is not exhaustive - you can do other things with numbers and other attribute types in AudienceStream.