Milonic menu & Google Analytics onClick events

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
noblemarine
Beginner
Beginner
Posts: 1
Joined: Tue Feb 28, 2006 1:21 pm

Milonic menu & Google Analytics onClick events

Post by noblemarine »

I use the milonic menu and want to add some onclick events to track users who click on certain links in my menu. The links are to pdf documents so cannot be tracked using standard hit counters.

Google analytics allows you to add an onclick attribute to standard links as follows:

Code: Select all

<a href="pdfs/document.pdf"onClick="javascript:urchinTracker ('/pdfs/document.pdf');">
How do I add this onclick event to a link in the milonic menu?
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

Try something like this:

aI("text=Test;url=/pdfs/document.pdf;clickfunction=urchinTracker ('/pdfs/document.pdf')");

Hope this helps,
Andy
Post Reply