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

Use new Google snippet #134

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

Use new Google snippet #134

wants to merge 1 commit into from

Conversation

bovlb
Copy link

@bovlb bovlb commented Feb 14, 2023

This should work with both old Universal Analytics (UA) and new Google Analytics v4 (GA4).

Resolves #63

This should work with both old Universal Analytics (UA) and new Google Analytics v4 (GA4).

Resolves pages-themes#63
@welcome
Copy link

welcome bot commented Feb 14, 2023

Welcome! Congrats on your first pull request to the Hacker theme. If you haven't already, please be sure to check out the contributing guidelines.

Copy link

@intellizone intellizone left a comment

Choose a reason for hiding this comment

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

I recently started working with github pages and found that the one default in this repo is not working with google analytics G-, but the changes proposed

<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script> alone is enough and working. The entire script is also fine both worked for me.

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.

[FEATURE/FIX] Move from analytics.js to gtag.js (Google Analitics V4)
2 participants