Skip to main content
Focustivity

Add Tinylytics to Obsidian Publish


Use Obsidian Publish to host your Digital Garden and want a simple and privacy-focused analytics solution to track how people view your site. You can connect with Tinylytics, a simple and privacy-focused analytics service. - Create a file named publish.js in your root directory. - Add the following script to the file. - Publish the file!

var tinylyticsScript = document.createElement('script'); 
tinylyticsScript.defer = true; 
tinylyticsScript.src = '[tinylytics.app/embed/YOU...](https://tinylytics.app/embed/YOUREMBEDCODE.js';) document.head.appendChild(tinylyticsScript);