hotjar

Capturing Hotjar User ID in Google Tag Manager & Google Analytics

浪子不回头ぞ 提交于 2020-04-10 16:46:13
问题 We have a setup where we capture Hotjar User ID in Google Tag Manager and then pass it as a custom dimension to Google Analytics. It's done to simply merge and cross-reference both data sources. We used the following code to capture the User ID: function() { return hj.property.get('userId'); } 2 days back we stopped receiving the data, even though there haven't been any changes to Google Tag Manage, Google Analytics or our Hotjar account. My suspicion is that there have been a system update

Why do websites like Hotjar and Google Analytics use complex tracking code instead of just a <script> tag?

微笑、不失礼 提交于 2019-12-22 09:57:01
问题 Website that use JS tracking usually use this kind of code : <script> (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:9999,hjsv:5}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'//static.hotjar.com/c/hotjar-','.js?sv='); </script> In the end, those scripts just add a <script> tag to the <head> of the page, so surely there

Why do websites like Hotjar and Google Analytics use complex tracking code instead of just a <script> tag?

别等时光非礼了梦想. 提交于 2019-12-05 23:26:04
Website that use JS tracking usually use this kind of code : <script> (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:9999,hjsv:5}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'//static.hotjar.com/c/hotjar-','.js?sv='); </script> In the end, those scripts just add a <script> tag to the <head> of the page, so surely there must be a reason why they're doing it this way. Is it for ad-blocking bypass reasons ? Wouldn't the

How does HotJar generate their recordings?

浪子不回头ぞ 提交于 2019-12-03 13:17:18
问题 Tracking mouse movement/scroll/click events is easy but how do they save the screen and keep it in sync so well? The pages are rendered very quite well (at least for static HTML pages, haven't tested on Angular or any SPA), the sync is almost perfect. To generate and upload a 23fps recording of my screen (1920x1080) it would take about 2Mbps of bandwidth. Maybe when recording only when there are some mouse events it would still take some 300-500Kbps on average? That seems way too much... 回答1:

How does HotJar generate their recordings?

拟墨画扇 提交于 2019-12-03 03:25:53
Tracking mouse movement/scroll/click events is easy but how do they save the screen and keep it in sync so well? The pages are rendered very quite well (at least for static HTML pages, haven't tested on Angular or any SPA), the sync is almost perfect. To generate and upload a 23fps recording of my screen (1920x1080) it would take about 2Mbps of bandwidth. Maybe when recording only when there are some mouse events it would still take some 300-500Kbps on average? That seems way too much... HTML content and DOM changes get pumped through a websocket and stored by Hotjar (minus sensitive