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

  • Resolved arjendejong

    (@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 Tijmen Smit

    (@tijmensmit)

    No, it’s unfortunately not possible to do this without modifying core code, but I’m working on make that easier in the next major update.

    Thread Starter arjendejong

    (@arjendejong)

    Alright, I’ll wait for the next update then. Thanks! 🙂

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