Difference between revisions of "How do I set up link tracking?"

From Market Ruler Help
Jump to: navigation, search
(Created page with 'Link tracking works by adding a onclick handler to your link tags. Your link on your page appears something like this: <nowiki><a href="download.pdf">Download our broc…')
 
m
Line 19: Line 19:
 
{{crfaq}}
 
{{crfaq}}
 
[[Category:Technical]]
 
[[Category:Technical]]
 +
[[Category:ConversionRuler Tracking]]

Revision as of 19:25, 14 October 2009

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.