Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adding custom analytics #697

Answered by mzfr
mzfr asked this question in Q&A
Discussion options

I wanted to know if I want to use my own(self-hosted) analytics, how would I integrate that into the theme?

When I was using hugo-papermod there was an option to create a new file named extend_head.html in the layouts/partials folder. I tried to do the same in this but that didn't work.

You must be logged in to vote

Okay so right after I made this I found a way to do it.

I created a new file named extensions.html in the layout/partials/head/ folder. Adding any HTML to the extensions.html will extend the head of the theme.

Replies: 1 comment

Comment options

Okay so right after I made this I found a way to do it.

I created a new file named extensions.html in the layout/partials/head/ folder. Adding any HTML to the extensions.html will extend the head of the theme.

You must be logged in to vote
0 replies
Answer selected by mzfr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /