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

Restore the gtag JavaScript function to re-enable metrics #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carljparker
Copy link

The associated issue is in the pytorch/tutorials repository:

Issue #2696 · [BUG]
No longer collecting star-rating data...since transition to GA4 pytorch/tutorials#2696

The gtag function is used by metrics such as star-rating in the tutorials repository (which leverages pytorch_sphinx_theme).

The definition for the gtag function was deleted in the transition to Google Analytics 4 (GA4) in PR#182, which in-turn broke our metrics.

This commit restores the definition of the function to re-enable these metrics.

The associated issue is in the pytorch/tutorials repository:

Issue #2696 · [BUG]
No longer collecting star-rating data...since transition to GA4
pytorch/tutorials#2696

The gtag function is used by metrics such as star-rating in the
tutorials repository (which leverages pytorch_sphinx_theme).

The definition for the gtag function was deleted in the transition to
Google Analytics 4 (GA4) in PR#182, which in-turn broke our metrics.

This commit restores the definition of the function to re-enable these
metrics.
Copy link
Contributor

@svekars svekars left a comment

Choose a reason for hiding this comment

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

I do not have a way to test this but approving to unblock. Make sure to verify that this is indeed working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants