4 ms·
Just attach it externally. Do something like this: <a href="URL_TO_PDF" onclick="registerConversion()">Download</a> You can put a minor 500 ms pause so that e
by paraschopra 16y ago
Just attach it externally. Do something like this:
<a href="URL_TO_PDF" onclick="registerConversion()">Download</a>
You can put a minor 500 ms pause so that event gets registered.
- subbu 16y agoEven better, use unobtrusive js to do that: $('your element').click(function(){//put calls to mixpanel here; return true; });
- bearwithclaws 16y agoThanks for all the suggestions. I've implemented it: $("a.magcloud").click(function() { mpmetrics.track('purchase', {'issue': '#1'}); self.delay(500); return true; });