4.2 Onsite marketing links

You can track onsite links through IBM® Digital Analytics using the site promotions or real estate tracking code and associated reports.

The type of link to be tracked dictates which tracking code and report is implemented. Both site promotions and real estate tracking require addition of attributes to the HTML anchor to be reported. Site promotions and real estate tracking can be applied individually or in combination to the same link.

For example:
<a href="/path/doc.html" manual_cm_sp="fall-_-sale-_-free shipping" 
 manual_cm_re="page A-_-left navbar-_-mens shirts">
The value set in manual_cm_sp and manual_cm_re is automatically applied to the URL collected with the associated link click tag that is generated automatically upon visitor click of the anchor link. HTML anchor with missing or invalid HREF= url values such as javascript:function or mailto:address prevents collection and reporting of site promotion and real estate click or impression data. Manual impression and link click tags can be implemented to collect site promotions or real estate data for links that are not HTML anchors or are missing valid HREF= values. See 2.5.12 Manual Link Click Tag and 2.5.13 Manual Impression Tag for details. In all cases, characters that are not allowed in tag parameters such as single or double quotation marks, are removed from the collected site promotions or real estate data. Those characters do not appear in the reported data. See 2.5 Data Tags for more details.