Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:13

Milonic menu & Google Analytics onClick events


Poster: noblemarine
Dated: Tuesday February 28 2006 - 12:38:52 GMT

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:
<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?


Poster: Andy
Dated: Wednesday March 1 2006 - 11:03:20 GMT

Hi,

Try something like this:

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

Hope this helps,
Andy