tardellirs commited on
Commit
d3ce33d
·
verified ·
1 Parent(s): 7e1ca2f

Update site

Browse files
Files changed (1) hide show
  1. index.html +18 -0
index.html CHANGED
@@ -9,6 +9,24 @@
9
  <!-- the server sends a plain-HTML version of each page for search engines; with JavaScript the app replaces it -->
10
  <script>document.documentElement.classList.add("js")</script>
11
  <style>.js #app > .ssr { display: none }</style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  <script type="module" crossorigin src="/assets/index-B1BnDZnx.js"></script>
13
  <link rel="stylesheet" crossorigin href="/assets/index-BiRqN-Pp.css">
14
  </head>
 
9
  <!-- the server sends a plain-HTML version of each page for search engines; with JavaScript the app replaces it -->
10
  <script>document.documentElement.classList.add("js")</script>
11
  <style>.js #app > .ssr { display: none }</style>
12
+ <!-- Google Analytics (GA4), one stream for modelpulse.ifsp.dev and the Hugging Face Space. Page changes inside the
13
+ app are history pushes, which GA4's enhanced measurement already counts. The library loads once the page is
14
+ idle so it never competes with the first render; inside the Space's iframe the cookies must allow third-party use. -->
15
+ <script>
16
+ if (!/^(localhost|127\.0\.0\.1)$/.test(location.hostname)) {
17
+ window.dataLayer = window.dataLayer || [];
18
+ window.gtag = function () { dataLayer.push(arguments); };
19
+ gtag("js", new Date());
20
+ gtag("config", "G-DZCN93407Y", window.top !== window ? { cookie_flags: "SameSite=None;Secure" } : {});
21
+ addEventListener("load", function () {
22
+ (window.requestIdleCallback || setTimeout)(function () {
23
+ var s = document.createElement("script");
24
+ s.async = true; s.src = "https://www.googletagmanager.com/gtag/js?id=G-DZCN93407Y";
25
+ document.head.appendChild(s);
26
+ }, { timeout: 2000 });
27
+ });
28
+ }
29
+ </script>
30
  <script type="module" crossorigin src="/assets/index-B1BnDZnx.js"></script>
31
  <link rel="stylesheet" crossorigin href="/assets/index-BiRqN-Pp.css">
32
  </head>