mirror of
https://github.com/chinchang/web-maker.git
synced 2025-02-23 14:44:53 +01:00
fix onboard event tracking
This commit is contained in:
parent
cdc40aee8d
commit
c43f6462f8
@ -2306,7 +2306,10 @@ globalConsoleContainerEl
|
||||
// Check if new user
|
||||
if (!result.lastSeenVersion) {
|
||||
onboardModal.classList.add('is-modal-visible');
|
||||
trackEvent('ui', 'onboardModalSeen');
|
||||
if (document.cookie.indexOf('onboarded') !== -1) {
|
||||
trackEvent('ui', 'onboardModalSeen');
|
||||
document.cookie = 'onboarded=1';
|
||||
}
|
||||
chrome.storage.sync.set(
|
||||
{
|
||||
lastSeenVersion: version
|
||||
|
Loading…
x
Reference in New Issue
Block a user