Skip to content

Manual: Way to include Web Analytics (Plausible) when exporting Quarto book as a website #14879

Description

@drpawelo

What would you like to do?

Report an issue on quarto.org

Description

Hi. Section about website plausible analytics works well https://quarto.org/docs/websites/website-tools.html#analytics

But when exporting quarto BOOK as a website, the yml file requires a different format. (RStudio complains about plausible-analytics tag). Instead snipped needs to be included not in the 'website' section, but rather in the 'format > html' section. (https://github.com/teaching-programming/book/blob/main/_quarto.yml)

This worked in _quarto.yml:

format:
    html:
        include-in-header: _plausible_snippet.html

rather than

website:
  plausible-analytics:
    path: _plausible_snippet.html

Solution:
So basically, a section about analytics could be written in the quarto book section, or a mention of how book analytics differ could be added to the website section. I would be happy to help with either, but need a steer in a direction

Activity

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

Metadata

Metadata

Assignees

Labels

booksbugSomething isn't workingwebsitesIssues creating websites

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions