Nextcloud Tracking Integration #1724
Replies: 4 comments 8 replies
-
thanks for the feedback @iamflorencejay! what do you mean by this exactly? |
Beta Was this translation helpful? Give feedback.
-
Personally, I can think something about the files opened (event have to be written here) because folders stats will not be very relevant because users have to go thought a lot of folders to reach the final one. |
Beta Was this translation helpful? Give feedback.
-
Like for Piwik/Matomo, it has a nextcloud app that can track the visits, etc. I just want to have this feature on my arsenal. |
Beta Was this translation helpful? Give feedback.
-
Hello from the future. For those of you using jsloader to inject Plausible tracking script, this is one way to do it. The trick is to dynamically inject a new script tag into HEAD from inside the function that jsloader wraps the javascript with. This is what you would paste into jsloader: const script = document.createElement('script');
var scriptUrl = 'https://plausible.example.com/js/script.js';
script.src = scriptUrl;
script.onload = () => {
console.log(`${scriptUrl} loaded successfully!`);
// You can call a callback function here if needed
};
script.onerror = () => {
console.error(`Error loading ${scriptUrl}`);
};
document.head.appendChild(script); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I love to see Nextcloud to track some stuff directly onto Plausible. Can you add this?
Beta Was this translation helpful? Give feedback.
All reactions