WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Passing a variable to the opt_label of Google analytics _trackEvent (1 post)

  1. abelq
    Member
    Posted 10 months ago #

    Hi,

    Given that we can add a Google Analytics tracker to form submissions like so:

    on_sent_ok: "_gaq.push(['_trackEvent', 'Category', 'Action']);"

    and even add other options like opt_label, opt_value like so:

    _trackEvent(category, action, opt_label, opt_value, opt_noninteraction)

    I need to verify what is the correct way to pass a variable (dynamic value) to opt_label from a select input (dropdown) of the form?

    Thanks!

    http://wordpress.org/plugins/contact-form-7/

Reply

You must log in to post.

About this Plugin

About this Topic