feat: hotjar
This commit is contained in:
parent
e95a435108
commit
59e04fedc7
@ -122,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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user