Skip to content

Instantly share code, notes, and snippets.

@micahwalter
Created January 28, 2024 17:29
Show Gist options
  • Save micahwalter/517cfb56eb8d032a58c96bf214c332fd to your computer and use it in GitHub Desktop.
Save micahwalter/517cfb56eb8d032a58c96bf214c332fd to your computer and use it in GitHub Desktop.
var fathomSnippet = document.createElement('script');
fathomSnippet.defer = true;
fathomSnippet.setAttribute('data-site', '<your-site-code>');
fathomSnippet.src = 'https://cdn.usefathom.com/script.js';
document.head.appendChild(fathomSnippet);
@micahwalter
Copy link
Author

Hi Micah, I have tried to use your code and done all steps, but I still see no data coming up in fathom. Can you help maybe? I have a custom domain. thanks

I have not tried this with a custom domain. I thought Fathom deprecated those? Did you deploy the file? What do you see in the browser source?

@bplnyc
Copy link

bplnyc commented Apr 23, 2024

many thanks for answering

I have tried with no custom domain and with my custom domain.
the file is in my obsidian root folder in my vault. I also see I can publish the file, and I do this.
IN the browser source I cant see the script. So I think Im doing something wrong :)

@micahwalter
Copy link
Author

many thanks for answering

I have tried with no custom domain and with my custom domain. the file is in my obsidian root folder in my vault. I also see I can publish the file, and I do this. IN the browser source I cant see the script. So I think Im doing something wrong :)

This sounds more like an Obsidian Publish issue. I would try the forums over there. Feel free to reference this Gist.

@bplnyc
Copy link

bplnyc commented Apr 23, 2024 via email

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