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:
Abubakar Abid 2023-11-16 13:32:00 -08:00 committed by GitHub
parent 2777f326e5
commit e0fc146598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View File

@ -0,0 +1,7 @@
---
"@gradio/app": minor
"gradio": minor
"website": minor
---
feat:Allow google analytics to work on Spaces (and other iframe situations)

View File

@ -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

View File

@ -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>