Skip to content

RBLAB

Blog of Riccardo Bartoli about Javascript…(it was all about Flash and Actionscript)

View Riccardo Bartoli's LinkedIn profileView Riccardo Bartoli's profile

Recent Posts

  • My GIT workflow
  • [WordPress Snippet] Get first image from content
  • Connect to Cisco VPN from Mac OS X Lion (10.7)
  • Install Subversion on Mac OS X Lion (10.7)
  • [AS3 SNIPPET] Video loop class

Archives

  • November 2013
  • March 2012
  • November 2011
  • July 2011
  • February 2011
  • January 2011
  • October 2010
  • March 2010
  • September 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • February 2009
  • June 2008

Categories

  • Actionscript 3
  • AIR
  • Conferences/Meetings
  • Eclipse
  • FDT
  • Flash
  • Flash Catalyst
  • Flex
  • GIT
  • Javascript
  • jQuery
  • Mac OS X
  • Papervision 3D
  • Snippets
  • Tips
  • Uncategorized
  • Wordpress

[JQUERY SNIPPET] Count clicks for Google Analytics using jQuery

1
2
3
4
$('#divname a[href^="http"]').click(function()
{
  pageTracker._trackPageview('/outgoing/'+ $(this).attr('href'));
});
Posted on Jan 25, 2011Jan 25, 2011Author RiccardoCategories Javascript, jQueryTags Javascript, jQuery, Snippets

Post navigation

Previous Previous post: [JQUERY SNIPPET] Replace any URL on your page with a clickable link
Next Next post: [JQUERY SNIPPET] Open external links in new window
Proudly powered by WordPress