-
AuthorPosts
-
June 30, 2017 at 5:37 pm #815084
Hi Peeps,
Has anyone got a guide to setting up a goal conversion to be picked up from the Enfold Contact form Submit button?
What code if any do I need to add and in which file? is it functions? and what criteria do we need to use in Analytics please.I really need some help with setting this up…is there a step by step process some one can share? thx in advance
Regards
DaveJuly 1, 2017 at 6:45 am #815253Hey Dave,
What is the code that you need to use and where is it supposed to go?
Best regards,
RikardJuly 3, 2017 at 10:33 am #815777That’s my question!!! I want to be able to use google analytics goal tracking code (EVENT) when the contact form submit button has been pressed.
https://support.google.com/analytics/answer/1012040?hl=en
What do I have to add to your theme in order for it to track THE CONTACT FORM SUBMIT Button being pressed by the user
July 3, 2017 at 12:48 pm #815851Hi,
Please check our documentation: http://kriesi.at/documentation/enfold/add-onclick-event-to-the-contact-form-submit-button/
Hope this helps.Best regards,
NikkoJuly 3, 2017 at 1:51 pm #815887Thank you for your reply
Can I also please ask regarding this code?
add_filter(‘avf_contact_form_submit_button_attr’,’avia_add_submit_attributes_to_cf’, 10, 3);
function avia_add_submit_attributes_to_cf($att, $formID, $form_params){
$att = “onclick=\”_gaq.push([‘_trackPageview’, ‘/VP/XXX/XXX’]);\””;
return $att;
}Is the “/VP/XXX/XXX” code above the Google Tracking ID UA-xxxxxxxx-x ?
Also in Google Event Goal Details You Can specify the following
Category: “Contact Form”
Action: “”
Label: “”
Value: “”
what values do i use from the form to fill in the event details above?Cheers for your assistance.
- This reply was modified 7 years, 5 months ago by Dave.
July 5, 2017 at 5:56 pm #816850Hi Can You help with the questions i have asked after the link you posted?
July 6, 2017 at 9:17 am #817098Hi,
Yes, it’s the tracking code as mentioned in the documentation. As for other details:
Action is the url in which your contact form is located so it’s something like: “http://domain.com/contact/”
Label: “”
Value: “Submit”Hope this helps.
Best regards,
NikkoJuly 6, 2017 at 11:42 am #817157Many thanks for the reply, However Google analytics Goal Details allows a number for Value: not submit text. as i get “Please specify a valid integer as comparison value”.
This is an Event condition in analytics and the enfold contact form is set to thank you message not thank you page.
here is what i entered but doesn’t seem to work?Category: “Contact Form”
Action: “url address”
Label: “Submit”
Value: “1”So I’m not sure how to get this to pickup the form a click.
Have I missed a part out? or have entered the incorrect details?
Any help on this will be much appreciated.July 10, 2017 at 11:28 am #818640Hi this is a little confusing I still cant get the form button to be picked up from analytics can any one assist us in getting this to work please?
July 10, 2017 at 10:51 pm #819013Hi,
I followed the discussion and while Nikko tried to help as much as possible, I think you would need someone who knows exactly what and how they are doing it
It is better to consider hire a freelancer to help you out, as your request is really specific and it would be better to get some reall help for it.Thank you for your understanding
Best regards,
BasilisJuly 27, 2017 at 4:46 am #830443This reply has been marked as private.July 31, 2017 at 7:55 pm #832378Hi,
Analytics will check the page name and they will do push that one.
So it will be almost automatic for you,basicly based on the page that the form is.Best regards,
BasilisAugust 4, 2017 at 8:24 pm #834496tks.
Another question,
How can I order by title?
[av_productgrid categories='51' columns='4' items='-1' offset='0' sort='title' paginate='no']
I have put this code and nothing happens.
August 8, 2017 at 3:12 pm #835873Can any one else help with this? All i want to do is set a goal to a submit button from the form and yet i still cant get it to work?
I have added this to the functions changing the UA codeadd_filter(‘avf_contact_form_submit_button_attr’,’avia_add_submit_attributes_to_cf’, 10, 3);
function avia_add_submit_attributes_to_cf($att, $formID, $form_params){
$att = “onclick=\”_gaq.push([‘_trackPageview’, ‘MYCODEHERE’]);\””;
return $att;
}In the goal we can edit the following
Category:
Action:
Label:
Value:Above iv been told to add
“Label: “”
Value: “Submit” ”VALUE INSIDE GOAL ONLY ALLOWS A NUMBER NOT A WORD! IS THIS THE OLD SYSTEM USING A WORD INSIDE VALUE?
If any one can help me with this id much appreciate it iv bought this theme a few times but now need to understand this myself. At this stage all i want it to pick up is a click? do i have to edit the code inside the function i added or would i just add Submit inside Action or?
Can any one please help or is there a tutorial i could look at
August 9, 2017 at 10:52 pm #836671Hi,
Please create different thickets for your questions – and we would appreciate not to use caps.
Thank you
Best regards,
Basilis -
AuthorPosts
- The topic ‘Contact Form Submit Button Google Analytics Goal Tracking’ is closed to new replies.