I'm looking at the WordPress Google Analytics plugin, specifically the external link javascript file and I'm having trouble figuring out what this syntax means:
$('a:external').on( 'click.wp-google-analytics', function(e){
I see previously we defined a custom filter for external links but I'm talking about the click.wp-google-analytics. I didn't know a click could have a class name. Can anyone point me in the right direction of understanding this and why the class name is required?