@@ -27,7 +27,7 @@ frontend:
2727 // Load Google Analytics script
2828 const script1 = document.createElement('script');
2929 script1.async = true;
30- script1.src = \` https://www.googletagmanager.com/gtag/js?id=\${ this.GA4_MEASUREMENT_ID}\` ;
30+ script1.src = ' https://www.googletagmanager.com/gtag/js?id=' + this.GA4_MEASUREMENT_ID;
3131 document.head.appendChild(script1);
3232
3333 // Initialize gtag
@@ -42,7 +42,7 @@ frontend:
4242 site_name: this.SITE_NAME
4343 });
4444
45- console.log(\`â
Google Analytics 4 initialized with ID: \${ this.GA4_MEASUREMENT_ID}\` );
45+ console.log(' Google Analytics 4 initialized with ID: ' + this.GA4_MEASUREMENT_ID);
4646 }
4747
4848 // Method to track custom events
@@ -53,7 +53,7 @@ frontend:
5353 event_label: label,
5454 value: value
5555 });
56- console.log(\`ð GA4 Event tracked: \${ action} (\${ category})\` );
56+ console.log(' GA4 Event tracked: ' + action + ' (' + category + ')' );
5757 }
5858 }
5959
@@ -75,7 +75,7 @@ frontend:
7575 custom_parameters: details,
7676 ...details
7777 });
78- console.log(\`🔑 Key Event tracked: \${ action}\` , details);
78+ console.log(' Key Event tracked: ' + action, details);
7979 }
8080 }
8181
@@ -86,17 +86,17 @@ frontend:
8686 nav_item: item,
8787 nav_location: location
8888 });
89- console.log(\`🧭 Navigation tracked: \${ item} at \${ location}\` );
89+ console.log(' Navigation tracked: ' + item + ' at ' + location);
9090 }
9191 }
9292
9393 trackModal(action, modalName) {
9494 if (window.gtag) {
95- gtag('event', \` modal_\${ action}\` , {
95+ gtag('event', ' modal_' + action, {
9696 event_category: 'modal_interaction',
9797 modal_name: modalName
9898 });
99- console.log(\`📱 Modal tracked: \${ action} - \${ modalName}\` );
99+ console.log(' Modal tracked: ' + action + ' - ' + modalName);
100100 }
101101 }
102102
@@ -108,7 +108,7 @@ frontend:
108108 ai_action: action,
109109 ...details
110110 });
111- console.log(\`🤖 AI Interaction tracked: \${ provider} - \${ action}\` , details);
111+ console.log(' AI Interaction tracked: ' + provider + ' - ' + action, details);
112112 }
113113 }
114114
@@ -119,7 +119,7 @@ frontend:
119119 doc_operation: operation,
120120 ...details
121121 });
122- console.log(\`📄 Document Operation tracked: \${ operation}\` , details);
122+ console.log(' Document Operation tracked: ' + operation, details);
123123 }
124124 }
125125
@@ -130,7 +130,7 @@ frontend:
130130 research_operation: operation,
131131 ...details
132132 });
133- console.log(\`🔬 Research Operation tracked: \${ operation}\` , details);
133+ console.log(' Research Operation tracked: ' + operation, details);
134134 }
135135 }
136136
@@ -141,16 +141,16 @@ frontend:
141141 interaction_method: method,
142142 ...details
143143 });
144- console.log(\`💬 Chat Interaction tracked: \${ method}\` , details);
144+ console.log(' Chat Interaction tracked: ' + method, details);
145145 }
146146 }
147147
148148 // Device and capability tracking
149149 trackDeviceInfo() {
150150 if (window.gtag) {
151151 const deviceInfo = {
152- screen_resolution: \`\${ screen.width}x\${ screen.height}\` ,
153- viewport_size: \`\${ window.innerWidth}x\${ window.innerHeight}\` ,
152+ screen_resolution: screen.width + 'x' + screen.height,
153+ viewport_size: window.innerWidth + 'x' + window.innerHeight,
154154 user_agent: navigator.userAgent,
155155 platform: navigator.platform,
156156 language: navigator.language,
@@ -165,13 +165,13 @@ frontend:
165165 ...deviceInfo
166166 });
167167
168- console.log('📱 Device Info tracked:', deviceInfo);
168+ console.log('Device Info tracked:', deviceInfo);
169169 }
170170 }
171171
172172 // Debug helper
173173 debugAnalytics() {
174- console.log('🔍 Analytics Debug Info:');
174+ console.log('Analytics Debug Info:');
175175 console.log(' - GA4 ID:', this.GA4_MEASUREMENT_ID);
176176 console.log(' - gtag available:', !!window.gtag);
177177 console.log(' - dataLayer length:', window.dataLayer ? window.dataLayer.length : 0);
0 commit comments