-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Usage of Fathom Analytics #1596
Comments
If you feel like it, you can make a PR to add it to the supported analytic options. Otherwise, either add the script tag from Fathom to the HTML block in |
Thanks a lot! Unfortunately, I’m not savvy enough to make a PR in typescript. But appreciate your help. Just another two questions:
|
Put it somewhere in this part of https://github.com/jackyzha0/quartz/blob/v4/quartz%2Fcomponents%2FHead.tsx#L158-L205 Probably near the bottom of that part. |
Unfortunately it doesn’t work. There is some syntax problem while inserting my snippet into My actual snippet would be:
However, the build process fails with:
If I just remove the
Any tips on how to deal with that? |
The snippet you posted here is different from the one in the comment above. The snippet you posted seems weird. You call a function |
Use this guide: https://usefathom.com/docs/integrations/spas Use this for help setting up tracking if Fathom is not tracking pageviews properly: https://usefathom.com/docs/script/script-advanced |
Describe the bug
Not exactly a bug, but more a question about the usage of Fathom Analytics. All I have to do is to insert a small snippet of code to the “main html of the site”. However I’m unsure about where to insert this script. Navigating through the site files, it’s not clear where is the “main html” of the site.
Should I put it in the
quartz.config.ts
even if thefathom
value doesn’t exist?To Reproduce
Steps to reproduce the behavior:
This is a question, no reproducible steps to take.
Expected behavior
In the
quartz.config.ts
I expected to see the optionfathom
and a place to insert the script snippet.Screenshots and Source
My site: https://github.com/jecogeo/Jecogeo-jardim-digital/
Desktop (please complete the following information):
node
Version: 20.9.0npm
version: (not on desktop right now to check)The text was updated successfully, but these errors were encountered: