Created
August 27, 2020 18:04
-
-
Save johndewolf/9fa911379c7b1a71415320ad141e4013 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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