-
Hi! Can anyone help me? I’m trying to connect Google Analytics to my site, but it’s not working. Here’s the code I added to analytics.html: {% comment %} {% if site.google-analytics-id %} <script async src="https://www.googletagmanager.com/gtag/js?id=G-01RZB011Q3"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-01RZB011Q3'); </script>{%- endif -%} Then I added the google ID to _config.yml like this: Can anyone help me? |
Beta Was this translation helpful? Give feedback.
Answered by
cgrillo98
Jun 1, 2025
Replies: 1 comment
-
I just had to wait — it took a little time 😅 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cgrillo98
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just had to wait — it took a little time 😅