Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function eventFireCapterra() {
var capterra_vkey = 'YOUCAPTERRAKEY',
capterra_vid = 'ID',
capterra_prefix = (('https:' == document.location.protocol)
? 'https://ct.capterra.com' : 'http://ct.capterra.com');
var ct = document.createElement('script');
ct.type = 'text/javascript';
ct.async = true;
ct.src = capterra_prefix + '/capterra_tracker.js?vid='
+ capterra_vid + '&vkey=' + capterra_vkey;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ct, s);
};
window.drift.on('emailCapture', function(e){
eventFireCapterra();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.