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 is not working #2215

Open
ettoreleandrotognoli opened this issue Oct 9, 2023 · 0 comments · May be fixed by #2216
Open

google-analytics is not working #2215

ettoreleandrotognoli opened this issue Oct 9, 2023 · 0 comments · May be fixed by #2216
Labels
C-bug Category: A bug, incorrect or unintended behavior

Comments

@ettoreleandrotognoli
Copy link

Problem

I added the google analytics tag but is was not collecting data

Steps

add your google analytics tag to book.toml

[output.html]
google-analytics = "*****"

Screenshot from 2023-10-09 16-40-07

The HTTP answer is 200 but the data is not been shown on google analytics dashboard

Possible Solution(s)

Update the google analytics script to use collect?v=2 instead of collect?v=1

Notes

Google is suggesting a new js code

Version

mdbook v0.4.35
@ettoreleandrotognoli ettoreleandrotognoli added the C-bug Category: A bug, incorrect or unintended behavior label Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: A bug, incorrect or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant