mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-24 10:54:04 +08:00
Allow google analytics to work on Spaces (and other iframe situations) (#6427)
* ga on spaces * add changeset * format --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
2777f326e5
commit
e0fc146598
7
.changeset/slimy-oranges-dress.md
Normal file
7
.changeset/slimy-oranges-dress.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
"@gradio/app": minor
|
||||
"gradio": minor
|
||||
"website": minor
|
||||
---
|
||||
|
||||
feat:Allow google analytics to work on Spaces (and other iframe situations)
|
@ -69,7 +69,9 @@
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag("js", new Date());
|
||||
gtag("config", "UA-156449732-1");
|
||||
gtag("config", "UA-156449732-1", {
|
||||
cookie_flags: "samesite=none;secure"
|
||||
});
|
||||
</script>
|
||||
|
||||
<script
|
||||
|
@ -686,7 +686,9 @@
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag("js", new Date());
|
||||
gtag("config", "UA-156449732-1");
|
||||
gtag("config", "UA-156449732-1", {
|
||||
cookie_flags: "samesite=none;secure"
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
</svelte:head>
|
||||
|
Loading…
Reference in New Issue
Block a user