Tagged: event tracking, form, google analytics
Hi,
I am looking into http://kriesi.at/documentation/enfold/add-onclick-event-to-the-contact-form-submit-button/
Where can I find information on the form parameters mentioned in the article?
I would like to use them to pass more information in the event tracking, to specify which form is used etc.
Thanks in advance,
Sara
Hey Sara,
Perhaps this will help: https://developers.google.com/analytics/devguides/collection/analyticsjs/events
Best regards,
Mike
Thank you, I have seen this.
My question was about what form parameters are available to add in the event tracking. So what’s in the $form_params in the code snippet on your faq site http://kriesi.at/documentation/enfold/add-onclick-event-to-the-contact-form-submit-button/
Sara
Hey!
The “$form_params” refers to the options set in the contact form. It should return something like the following.
array (size=17)
'heading' => string '<h3>Send us mail</h3>' (length=21)
'success' => string '<h3 class='avia-form-success'>Your message has been sent!</h3>' (length=62)
'submit' => string 'Submit' (length=6)
'myemail' => string 'Email Address' (length=19)
'action' => string 'http://localhost/kriesi/enfold/test-page/' (length=41)
'myblogname' => string 'Enfold' (length=6)
'autoresponder' => string '' (length=0)
'autoresponder_subject' => string 'Thank you for your Message!' (length=27)
'autoresponder_email' => string 'Email Address' (length=19)
'subject' => string '' (length=0)
'form_class' => string ' avia-builder-el-0 el_before_av_one_half avia-builder-el-first ' (length=67)
'multiform' => boolean true
'label_first' => boolean true
'redirect' => string '' (length=0)
'placeholder' => string '' (length=0)
'numeric_names' => boolean true
'avia_formID' => int 1
Regards,
Ismael