Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

abelq on "[Plugin: Contact Form 7] Passing a variable to the opt_label of Google analytics _trackEvent"

$
0
0

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/


Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>