fix: gtag
All checks were successful
Deploy QR Rapido / test (push) Successful in 33s
Deploy QR Rapido / build-and-push (push) Successful in 15m10s
Deploy QR Rapido / deploy-staging (push) Has been skipped
Deploy QR Rapido / deploy-production (push) Successful in 2m11s

This commit is contained in:
Ricardo Carneiro 2025-10-23 19:55:24 -03:00
parent 174287f5bf
commit 262870548a

View File

@ -97,6 +97,7 @@
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
*@
<!-- Structured Data Schema.org -->
<script type="application/ld+json">
{
@ -133,20 +134,13 @@
</script>
<!-- Google Analytics 4 - Optimized with defer -->
<script defer src="https://www.googletagmanager.com/gtag/js?id=G-64FCDJGT44"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-64FCDJGT44"></script>
<script defer>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
// Initialize with denied consent for GDPR compliance
gtag('consent', 'default', {
'analytics_storage': 'denied'
});
gtag('js', new Date());
gtag('config', 'G-64FCDJGT44', {
send_page_view: false
});
gtag('config', 'G-64FCDJGT44');
// Custom events for QR Rapido
window.trackQRGeneration = function(type, time, isPremium) {
@ -172,11 +166,11 @@
};
window.trackLanguageChange = function(from, to) {
gtag('event', 'language_change', {
'event_category': 'Localization',
'previous_language': from,
'new_language': to
});
gtag('event', 'language_change', {
'event_category': 'Localization',
'previous_language': from,
'new_language': to
});
};
</script>