onclick with Callout

Hey Andy,

I think this can be achieved via jQuery but I’m not really sure. You can check this thread on SE as it discusses the same thing. I tried achieving the same thing and I end up with this.

  1. Placed a class on the Callout module onclick-test
  2. Added this jQuery code in the customizer
jQuery(document).ready(function() {
  jQuery(".onclick-test .fl-callout-button a").on("click", function() {
    _gaq.push(['_trackEvent', 'Download', '2016 Conference', 'Variant 2']);
  });
});

Hope this helps!

Ben

1 Like