Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Melusine29

    (@melusine29)

    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

    Thread Starter Melusine29

    (@melusine29)

    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 ‘Tracking code on button’ is closed to new replies.