Hacker News new | ask | show | jobs
by eCa 4843 days ago
This is OT, but you really should track clicks on links (if you need to do it in the first place) in a different way than this:

    <a href="javascript:mixpanel_track_link('http://liftweb.com/','link:liftweb.com');">my first encounter with Lift</a>
2 comments

Came here to say the same. At least they should detect a scroll wheel click and open the link in a new tab.

Or they could use the google approach and change the link in the last moment to point to a tracking service.

One more with the same problem. Right click open in a new window, and then 3 tabs with about:blank.

That is also because using lift?

No, Lift does NOT do this. The site appears to be running on WordPress (guessing based on the 'wp-content' in the paths for assets).

I confess to having a bit of a crush on Lift so I was happy to see something about it on the front page, but this article is a little vague, so most people will probably remember the intrusive click tracking over anything else.

No, that s probably because

  <!-- This site is optimized with the Yoast WordPress SEO plugin v1.4.1 - http://yoast.com/wordpress/seo/ -->
Interesting. Safari won't even give me the option to open it in a new tab, since it's obviously not a web link.

Just obnoxious.

Nope. This is a wordpress blog.
It's easy to do this with a jquery post - just bind to the click event, and post the tracking data to whatever URL you want as a separate async action, without getting in the way of the user.

You should never put js in the href like this, or insert extra referral links prior to going to the real link as google have been doing recently; it breaks the web.