Support » Plugin: Store Locator WordPress » Google Analytics event tracking

  • Resolved arjendejong


    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)
  • Plugin Author agileLogix


    Hi, wpsl.gmap.js is not part of the plugin, I think you are using some other plugin, with our plugin there is a site_script.js, please send us your URL, I can help you where to put this line of code.


    Thread Starter arjendejong


    Hey, I’ve got the wrong ‘Store Locator’ plugin, my bad!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google Analytics event tracking’ is closed to new replies.