WordPress.org

Support

Support » Plugins and Hacks » Google Maps WordPress Store Locator » [Resolved] Tracking code on button

[Resolved] Tracking code on button

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nobody ?

    I’m not sure, but maybe it will work for tracking:
    open /wp-content/plugins/store-locator/sl-functions.php and on line 1208, replace

    $button_style.=" onclick=\"showLoadImg('show', 'loadImg');\"";

    with

    $button_style.=" onclick=\"_gaq.push(['_trackEvent', 'Locations', 'Search locations']);\"";

    Location is the event category and Search locations is the action

    Use .val() if you want to retrieve the value of an input field:
    .val() | jQuery API Documentation

    Ok thanks. it doesn’t work – probably because of the many quotes and double-quotes ..
    It’s okay, my client does not want this function anyway!
    Thank you for your help

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Tracking code on button’ is closed to new replies.
Skip to toolbar