Google Analytics event tracking
-
Hey, is there a way to add event tracking code when clicking on a marker, without modifying plugin files? Adding the following code to the setInfoWindowContent function in wpsl.gmap.js works, but I’d rather not change plugin files:
ga(‘gtag_UA_123456789_1.send’, ‘event’, ‘Marker’, ‘click’, marker.title);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Google Analytics event tracking’ is closed to new replies.