vince
vince copied to clipboard
Bug: vince vs plausible
https://www.vinceanalytics.com/blog/website-script-extensions/ https://www.vinceanalytics.com/blog/goals-404/
According to the documentation here and here, I have to set up my local function vince and then I will be able to track any pageviews and custom events.
But this does not work, because the server does not return an object named vince.
The only way to fix this is to replace my local function with the following code:
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
<script>window.vince = (eventName, eventOptions = {}) => window.plausible(eventName, eventOptions)</script>
It would be nice if you could fix this problem, or at least describe it in detail in the documentation.
Thanks!