How to track which markers are clicked (Analytics)
-
Hello,
I would like to track (with google Analytics) which markers are clicked by users, but I don’t know how to do this.
I think, that I should use something like this:google.maps.event.addListener(marker, ‘click’, function() {
ga(‘send’, ‘event’, ‘category’, ‘action’, ‘label’);
});Is that right? But I don’t know where to put it in the code and in which file. Could you help me?
BR
Maciej
The topic ‘How to track which markers are clicked (Analytics)’ is closed to new replies.