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

add support for Umami analytics #328

Closed
wants to merge 1 commit into from

Conversation

marten-seemann
Copy link

Fixes #327.

Copy link

netlify bot commented Mar 21, 2024

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit 430a25f
🔍 Latest deploy log https://app.netlify.com/sites/hugo-hextra/deploys/65fc196fae039b0008d12836
😎 Deploy Preview https://deploy-preview-328--hugo-hextra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@imfing
Copy link
Owner

imfing commented Mar 22, 2024

Hi, thank you for the PR.

I don't plan to include this in the next release, but will kep this open for the future.

@marten-seemann
Copy link
Author

@imfing Any changes you’d like to see to this PR? Any chance this could be included in the next release? I’ve already tested the code and it works, would be great if I could remove my fork with the next release.

marten-seemann added a commit to quic-go/docs that referenced this pull request Mar 27, 2024
This requires using a fork of the theme, since
imfing/hextra#328 isn't merged yet.
marten-seemann added a commit to quic-go/docs that referenced this pull request Mar 27, 2024
This requires using a fork of the theme, since
imfing/hextra#328 isn't merged yet.
@imfing
Copy link
Owner

imfing commented Mar 28, 2024

Just a side note: for current versions (0.7.x), the tracking code could be placed under layouts/partials/custom/head-end.html of your site

<script async defer src="https://url" data-website-id="id" ></script>

@@ -36,6 +36,11 @@
{{ partial "google-analytics.html" . }}
{{- end }}

<!-- Umami -->
{{- if and hugo.IsProduction .Site.Params.umami.serverURL .Site.Params.umami.id }}
Copy link
Owner

Choose a reason for hiding this comment

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

I suggest placing it under analytics:

params:
  analytics:
    # https://github.com/umami-software/umami
    umami:
      server: https://server-url
      # script: umami.js
      id: "site-id"

Copy link
Owner

@imfing imfing left a comment

Choose a reason for hiding this comment

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

Per above, also could you create another PR to add documentation for this?

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 request: support for Umami analytics
2 participants