mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-03 01:48:32 +02:00
delay hubspot identify call (#1886)
This commit is contained in:
@@ -33,13 +33,15 @@
|
||||
// Hubspot
|
||||
try {
|
||||
if (msg.email) {
|
||||
window._hsq = window._hsq || [];
|
||||
window._hsq.push(['identify', { email: msg.email }]);
|
||||
setTimeout(() => {
|
||||
window._hsq = window._hsq || [];
|
||||
window._hsq.push(['identify', { email: msg.email }]);
|
||||
|
||||
if (sessionStorage.getItem(HS_PAGEVIEWED_NAME) !== 'true') {
|
||||
window._hsq.push(['trackPageView']);
|
||||
sessionStorage.setItem(HS_PAGEVIEWED_NAME, 'true');
|
||||
}
|
||||
if (sessionStorage.getItem(HS_PAGEVIEWED_NAME) !== 'true') {
|
||||
window._hsq.push(['trackPageView']);
|
||||
sessionStorage.setItem(HS_PAGEVIEWED_NAME, 'true');
|
||||
}
|
||||
}, 2000);
|
||||
}
|
||||
} catch { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user