How do I set up link tracking?

From Market Ruler Help
Revision as of 19:25, 14 October 2009 by Admin (talk | contribs)
Jump to: navigation, search

Link tracking works by adding a onclick handler to your link tags.

Your link on your page appears something like this:

<a href="download.pdf">Download our brochure</a>

You will modify this using the Code Generator (link) (preferably), then adding the cr_link call to it:

<a href="download.pdf" onclick="return (typeof cr_link != 'undefined') ? cr_link(this, 5) : true">Download our brochure</a>

Different Conversion Actions will have a different Action Code in the link (in this case, 5).

For links which already have an onclick attribute in them, it requires some additional programming, but you can usually append the code with ours:

<a href="download.pdf" onclick="genPDFanim(); return (typeof cr_link != 'undefined') ? cr_link(this, 5) : true">Download our brochure</a>

Since this delves into the more technical realm, please contact MarketRuler Support if you have any questions.