WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Landing Pages
Conflict with Contact Form 7 (8 posts)

  1. Alex P
    Member
    Posted 1 year ago #

    I have a problem using this plugin together with Contact Form 7.
    It does not execute my custom code on the submit form, where is my analytics tracking.
    Without Landing Pages, the code is executed with no problems.
    Is there a way to track the conversion with an analytics directly in Landing Pages?

    http://wordpress.org/extend/plugins/landing-pages/

  2. David Wells
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Alex,

    What special analytics tracking javascript are you using?

  3. Alex P
    Member
    Posted 1 year ago #

    I'm using Google Analytics, but it simply does not trigger the event I set on Contact Form 7. Even an alert() isn't triggered.
    I've tried removing Landing Page and the event is triggered correctly, so it is a conflict between Landing Page and Contact Form 7 plugins.

  4. David Wells
    Member
    Plugin Author

    Posted 1 year ago #

    We are unbinding events to track the form conversions.

    Can you post the tracking code you are using?

  5. Alex P
    Member
    Posted 1 year ago #

    The tracking code is:
    on_sent_ok: "_gaq.push(['_trackEvent', 'Sfratto', 'Submit']);"

    The problem is that it does not exeute any cody at the on_sent_ok event in Contact Form 7.

  6. Alex P
    Member
    Posted 1 year ago #

    Maybe it is due to form standardization? If I enable form standardization, the on_sent_ok event is not triggered.
    Disabling form standardization, I get the following js error:

    Uncaught TypeError: Property 'submit' of object #<HTMLFormElement> is not a function

  7. David Wells
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Alex,

    Not sure why the event isn't firing. But I want to build in the google analytics custom event tracking into landing pages anyway.

    Can you give me more information on what Sfratto and the submit values are in your tracking code above?

    on_sent_ok: "_gaq.push(['_trackEvent', 'Sfratto', 'Submit']);"

    Trying to figure out what settings we need to give users from the google analytics dev docs https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide

    Thanks!

  8. Alex P
    Member
    Posted 1 year ago #

    Hello,
    I'm using 'category' and 'action' parameters ("sfratto" and "submit") in the trackEvent code.
    I guess my problem is related to form standardization, but I cannot make my form working without it and cannot track with it...
    Any idea about what can I do?
    Thanks a lot

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic