Update Google Analytics config for iframes
Browse files- app/static/index.html +6 -1
app/static/index.html
CHANGED
|
@@ -6,7 +6,12 @@
|
|
| 6 |
window.dataLayer = window.dataLayer || [];
|
| 7 |
function gtag(){dataLayer.push(arguments);}
|
| 8 |
gtag('js', new Date());
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
</script>
|
| 11 |
|
| 12 |
<meta charset="utf-8" />
|
|
|
|
| 6 |
window.dataLayer = window.dataLayer || [];
|
| 7 |
function gtag(){dataLayer.push(arguments);}
|
| 8 |
gtag('js', new Date());
|
| 9 |
+
|
| 10 |
+
// ✅ UPDATED CONFIG: Enables tracking inside Hugging Face iframes
|
| 11 |
+
gtag('config', 'G-QFG67BD3FB', {
|
| 12 |
+
'cookie_flags': 'SameSite=None;Secure',
|
| 13 |
+
'cookie_domain': 'auto'
|
| 14 |
+
});
|
| 15 |
</script>
|
| 16 |
|
| 17 |
<meta charset="utf-8" />
|