WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Store Locator
[resolved] Tracking code on button (4 posts)

  1. Melusine29
    Member
    Posted 7 months ago #

    Hi

    Is it possible to put a tracking code on "addressSubmit" button and retrieve the value of the input "addressInput"?

    Thanks

    http://wordpress.org/plugins/store-locator/

  2. Melusine29
    Member
    Posted 7 months ago #

    Nobody ?

  3. Gaerwn
    Member
    Posted 6 months ago #

    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

  4. Melusine29
    Member
    Posted 5 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.