I’ve read that I need to use CustomTrackerJs plugin but that doesn’t seem compatible with 3.0.3, or at least there’s no obvious way for me to use it (checked Plugin Settings).
Alternatively, is it safe for me to manually edit my piwik.js file server-side?
If anyone can offer help I would be very grateful.
hi lukas,
I have the same query as above.
I am writing a function in piwik.js and on the click of a button on my website I call that function.
That function is working.
BUT-> The piwik.js removes that function after a certain period (30 minutes approx) automatically.
I too have installed customtrackerjs plugin which is not comaptible.
Help will be much appreciated.
thanks.
Small note: Keep in mind that the piwik.js is loaded asynchronously, which means it isn’t guaranteed that the function has already been loaded when the user clicks on the button.
When you call _paq.push([‘addDownloadExtensions’, “pkg|msi|spk|bin”]); from your code it works the same before and after Matomo was initialized.