Compare commits

..

2 Commits

Author SHA1 Message Date
59e04fedc7 feat: hotjar
All checks were successful
Deploy QR Rapido / test (push) Successful in 44s
Deploy QR Rapido / build-and-push (push) Successful in 13m49s
Deploy QR Rapido / deploy-staging (push) Has been skipped
Deploy QR Rapido / deploy-production (push) Successful in 2m10s
2025-10-19 10:21:30 -03:00
e95a435108 feat: hotjar 2025-10-19 10:10:12 -03:00

View File

@ -57,6 +57,18 @@
<link rel="preload" href="~/css/site.css" as="style">
<link rel="preload" href="~/css/qrrapido-theme.css" as="style">
<!-- Hotjar Tracking Code for https://qrrapido.site -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:6550944,hjsv:6};
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,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<!-- Structured Data Schema.org -->
<script type="application/ld+json">
{
@ -110,25 +122,25 @@
// Custom events for QR Rapido
window.trackQRGeneration = function(type, time, isPremium) {
gtag('event', 'qr_generated', {
'event_category': 'QR Generation',
'event_label': type,
'value': Math.round(parseFloat(time) * 1000),
'custom_parameters': {
'generation_time': parseFloat(time),
'user_type': isPremium ? 'premium' : 'free',
'speed_category': time < 1.0 ? 'ultra_fast' : time < 2.0 ? 'fast' : 'normal'
}
});
gtag('event', 'qr_generated', {
'event_category': 'QR Generation',
'event_label': type,
'value': Math.round(parseFloat(time) * 1000),
'custom_parameters': {
'generation_time': parseFloat(time),
'user_type': isPremium ? 'premium' : 'free',
'speed_category': time < 1.0 ? 'ultra_fast' : time < 2.0 ? 'fast' : 'normal'
}
});
};
window.trackSpeedComparison = function(ourTime, competitorAvg) {
gtag('event', 'speed_comparison', {
'event_category': 'Performance',
'our_time': parseFloat(ourTime),
'competitor_avg': parseFloat(competitorAvg),
'speed_advantage': parseFloat(competitorAvg) - parseFloat(ourTime)
});
gtag('event', 'speed_comparison', {
'event_category': 'Performance',
'our_time': parseFloat(ourTime),
'competitor_avg': parseFloat(competitorAvg),
'speed_advantage': parseFloat(competitorAvg) - parseFloat(ourTime)
});
};
window.trackLanguageChange = function(from, to) {