Skip to content

google-analytics is not working #2215

@ettoreleandrotognoli

Description

@ettoreleandrotognoli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions