horizon_interest

Description

Returns the user’s interest level in a particular tag according to Personalization Engine.

 float horizon_interest( string tag )

Returns a floating-point number representing the level of interest that the current user has in the tag, where 1is the same level of interest as the average user on your site,2is twice as interested as the average user, and so on.

If you pass multiple tags separated by commas, the function will return the highest interest of any of the tags passed.

Example

{if horizon_interest('olympics,swimming') >= 2} 
<p>You might be interested in our coverage of the Olympics swimming team.</p> 
{/if}
Top