1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-14 10:36:19 +02:00

add usingpreview event.

This commit is contained in:
Kushagra Gour
2016-12-11 00:57:08 +05:30
parent fe7dfe990d
commit 620b8afda2

View File

@ -255,6 +255,11 @@
trackEvent('fn', 'hasCode');
trackEvent.hasTrackedCode = true;
}
// Track when people actually are working
trackEvent.previewCount = (trackEvent.previewCount || 0) + 1;
if (trackEvent.previewCount === 4) {
trackEvent('fn', 'usingPreview');
}
var fileWritten = false;
var blob = new Blob([ contents ], { type: "text/plain;charset=UTF-8" });