Omniture HTML custom/exit/download links

Here is an example of how to embed Omniture to your links.

Exit link

<a onclick="s.tl(this,'e','Exit-link-name-here');" href="#"> ...</a>

Download link

<a onclick="s.tl(this,'d','Download-link-name-here');" href="#"> ...</a>

Custom link

<a onclick="s.tl(this,'o','Custom-link-name-here');" href="#"> ...</a>

To view links in Omniture console go to:
Site Content > Links > Custom Links etc.

If you want to be more specific you can do this:

<a href="index.html" onClick="
var s=s_gi('rsid');
s.linkTrackVars='prop1,prop2,events,pageName';
s.linkTrackEvents='event1';
s.pageName = 'cnuk:show:generator-rex:games:augmented-reality';
s.prop1='Custom Property of Link';
s.events='event1';
s.tl(this,'o','Link Name');">My Page</a>

 

Comments are closed

Latest Comments