Skip to content

Instantly share code, notes, and snippets.

@wpsoul
Created February 11, 2016 23:15
Show Gist options
  • Save wpsoul/3e80926497ea2410c816 to your computer and use it in GitHub Desktop.
Save wpsoul/3e80926497ea2410c816 to your computer and use it in GitHub Desktop.
Tracking in rehub on click for affiliate buttons
<script>
jQuery(document).ready(function($) {
'use strict';
$(".btn_offer_block").on('click', function(){
ga('send', 'event', 'Offer', 'click on offer button', document.location.href);
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment