Tracking using Sleeknote or Drift

Rune Juul-Stokholm Updated by Rune Juul-Stokholm

Tracking forms using Sleeknote or Drift

Sleeknote

If you are using Sleeknote to collect leads then here is how you can ensure we track the Sleeknote popups. You might want to consider changing the event name from 'formSubmitted' to what makes sense for you.

​<script>
document.addEventListener('sleekNote', function (e) {
if (e.data.type == 'submit' && window.analytics) {
window.analytics.identify(null, { email: e.data.email });
window.analytics.track('formSubmitted');
}
}, false);
​</script>

You can read more information about how Sleeknotes Event Emitter works here.

Drift

If you have Drift chat on your website and would like identify users when an email is captured as part of a campaign. Then here is a snippet you can use to ensure the user is identified within Dreamdata.

Note: The script has to be loaded after your Drift script. Example you could paste in the below script as is just after your Drift script in your header. Which will identify users automatically and throw an chat_converted event.

​<script>
drift.on("emailCapture", function(payload) {
if (payload.data && payload.data.email && window.analytics) {
window.analytics.identify(null, {
email: payload.data.email
});
window.analytics.track('chat_converted');
}
});
​</script>

You can read more about how to receiving information from Drift here.

How did we do?

Anonymizing IP

How to track your emails?

Contact