Page 1 of 1

Call a ststs script?

Posted: Tue May 24, 2022 9:30 am
by deedee123
Hi,
Is there a way to call an external javascript each time a node is loaded? This could help for my stats script ( i don't want to use google analytics for this, instead i use matomo, an open source stats script )
I can now of course add a code to the html, allowing me to see hits to the document (already ok), but not see which nodes are clicked (which could be interesting).
Best,
David

Re: Call a ststs script?

Posted: Wed May 25, 2022 11:34 am
by Hopki
Hi David,
You can use the Node Change trigger with a Go To URL call with your javascript.
The Node Changed trigger, will trigger on open and all node changes.
Regards,

Re: Call a ststs script?

Posted: Wed May 25, 2022 1:02 pm
by deedee123
aha cool, seems very doable, i'll give it a go.
Thanks!
david