AndrewKof commited on
Commit
a91c3a3
·
1 Parent(s): ba14258

Update Google Analytics config for iframes

Browse files
Files changed (1) hide show
  1. 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
- gtag('config', 'G-QFG67BD3FB');
 
 
 
 
 
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" />