Tagged: CONTACT FORM, conversion tracking, enfold
-
AuthorPosts
-
May 24, 2019 at 5:04 am #1103854
Hi,
I’ve implemented the Enfold contact form on click event, but the problem that I’m running into is that all forms seem to have the same ID. In my Google Analytics events list I only see ‘Contact Form 1’ even though I’ve triggered events on separate forms on separate pages.
I need to be able to identify which form was triggered. Another possiblity would be to include the page slug into the ‘label’ parameter. How could I achieve this?Thanks,
AndriusMay 28, 2019 at 7:11 pm #1104938Hey Andrius,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
BasilisMay 30, 2019 at 9:44 am #1105392Hi @basilis,
I’m rather curious as to why I keep getting the offer to higher a designer. Similar queries by other users seem to get different answers from your team.
As for my question, I do believe it’s in support scope as the code snippet in question is taken from your official documentation yet doesn’t seem to be working as expected. It’s supposed to pass the ID of the form, but for all forms the value it passes is ‘1’.
My Enfold support hasn’t expired. I work on multiple websites with different Enfold licences.
Regards,
AndriusJune 1, 2019 at 12:53 pm #1106063Hi Andrius,
What code did you add?
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJune 12, 2019 at 2:49 pm #1109502Hi @victoria_d,
here’s the functions.php code I’m using: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){ global $post; $att = "onclick=\"__gaTracker('send', 'event', 'Forms', 'Submit', 'Contact Form $formID');\""; return $att; }
Please find login details attached. The site is live!
June 13, 2019 at 6:53 pm #1109974Hi mazeika,
Please have a look at these threads:
Best regards,
VictoriaJune 14, 2019 at 5:13 am #1110194Hi @victoria_d,
neither of the above solves or applies to my problem. I’m using MonsterInsights plugin for adding the GA code and it doesn’t use _gaq.push
In any case, the code gets triggered. The problem is that it always pass ‘1’ as the form ID value. There seems to be a problem with the code provided in the documentation article you sent me.
AndriusJune 16, 2019 at 5:55 pm #1110830Hi Andrius,
You need to check the MonsterInsights forums or docs on how to set up tracking then.
Best regards,
VictoriaJune 17, 2019 at 7:15 am #1110938Hi @victoria_d,
this just seems like bouncing the ball to the other team. The parameter passed comes from Enfold contact form, not from Monsterinsights plugin. The problem is with the parameter as it only passes ‘1’ as value. MonsterInsights is one of the top plugins for this, so I’m sure other Enfold users would appreciate a more detailed answer instead of bouncing the ball to the other team’s gate.
I’ve been using Enfold since 2014 and I find it remarkable how some support queries are answered in detail even though they aren’t directly related to Enfold while others are downright refused. My impression is that the latter is happening more often now.
This is basic functionality that every site that measures their marketing actions need.
AndriusJune 18, 2019 at 4:14 pm #1111345Hi Andrius,
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.