Skip to content

Instantly share code, notes, and snippets.

@Ollo
Created May 29, 2012 19:09
Show Gist options
  • Save Ollo/2830088 to your computer and use it in GitHub Desktop.
Save Ollo/2830088 to your computer and use it in GitHub Desktop.
conversion tracking via click instead of page view
$('.clickAction').click(function(){
$('<iframe id="converter" height="1" width="1" name="converter" >').attr('src', '<?php bloginfo('template_url'); ?>/tracking.html').appendTo('body');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment