Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Analytics fix #3349

Merged
merged 6 commits into from
Mar 1, 2023
Merged

Google Analytics fix #3349

merged 6 commits into from
Mar 1, 2023

Conversation

abidlabs
Copy link
Member

@abidlabs abidlabs commented Mar 1, 2023

It turns out that in the front end, analytics_enabled was always hardcoded to be False, which meant that Google analytics were never called. This fixes that so that we have more reliable usage analytics.

@@ -585,7 +585,7 @@ def iterate_over_children(children_list):

derived_fields = ["types"]

with Blocks(theme=config["theme"], css=config["theme"]) as blocks:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated, but noticed that this issue as well

@abidlabs abidlabs changed the title ga analytics fix Google Analytics fix Mar 1, 2023
@abidlabs abidlabs marked this pull request as ready for review March 1, 2023 07:41
@gradio-pr-bot
Copy link
Collaborator

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-3349-all-demos

Copy link
Collaborator

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @abidlabs !

@abidlabs
Copy link
Member Author

abidlabs commented Mar 1, 2023

Thanks for reviewing @freddyaboulton!

@abidlabs abidlabs merged commit cd99857 into main Mar 1, 2023
@abidlabs abidlabs deleted the ga-analytics-fix branch March 1, 2023 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants