Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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,
    Andrius

    #1104938

    Hey 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,
    Basilis

    #1105392

    Hi @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,
    Andrius

    #1106063

    Hi 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,
    Victoria

    #1109502

    Hi @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!

    #1109974

    Hi mazeika,

    Please have a look at these threads:

    Best regards,
    Victoria

    #1110194

    Hi @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.
    Andrius

    #1110830

    Hi Andrius,

    You need to check the MonsterInsights forums or docs on how to set up tracking then.

    Best regards,
    Victoria

    #1110938

    Hi @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.
    Andrius

    #1111345

    Hi Andrius,

    Best regards,
    Victoria

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.