I need to add some code to my site to help track, analyse site visitors. Some of the code has been added in the header and footer but I’m told that I also need to add some extra code to track onclick events. Here’s the code:
An example of the code below. I try to create a Custom Attribute in Settings but when enter onClick in the Name Value it says it’s reserved so unable to complete the task.
I came across this article but I don’t know how to configure the workaround suggested for my specific requirements. Google Analytics event tracking for buttons in Webflow
Any help appreciated.