• Resolved Matt Magi

    (@matt94gt)


    Hey,

    I have your plugin setup, and I put in my FB pixel. Im not using it on an ecommerce store, just to track conversions. How do I track a contact form 7 submission? On my contact page I did enable the “Lead” event. But I’m not too sure what I am supposed to put into the “Value 1” fields?

    As well how would I set it up for a standard page view? Such as ViewContent what would I then put in those fields?

    Thanks in advance,
    Matt

    https://wordpress.org/plugins/wp-facebook-pixel/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author jacobmhulse

    (@jacobmhulse)

    Hi Matt,

    First of all, thank you for contacting us and evaluating our plugin.

    The only way to trigger the Lead event to Facebook is if the user is redirected to another page on your WordPress site after completing the form. If so, then you would place the Lead event on this ‘thank you’ page. The value’s for this event are optional and can be ignored in this case.

    The standard PageView event is automatically added to every page and post for you. The ViewContent event is primarily reserved for important pages, like a product page. If the user visits that page but does not purchase the product, this would allow you to remarket it to them later.

    I hope this helps clear things up for you. If not or you have any other questions, please do not hesitate to reach back out to us.

    Thank you,
    Jacob

    Thread Starter Matt Magi

    (@matt94gt)

    Jacob,

    Thanks! So if I want to use ViewContent on page, and target those people what do I need to fill into the “Value 1” fields? And what will it show up like on my facebook pixel stats page? Will it have ViewContent there?

    Thanks again!

    Plugin Author jacobmhulse

    (@jacobmhulse)

    Matt,

    You can apply whatever meaningful data you want for the key/value pair. As an example: if your site marketed hotel rooms and you have a page which features information on San Diego. You could set that page’s ViewContent with a ‘Location’:’San Diego’ key value.

    This information is targetable within Facebook’s Create Audience control panel by selecting Custom Combination from the Website Traffic dropdown, then include the Event ‘ViewContent’ or whatever event you are passing data for. Once that particular event receives traffic with the key/value pairs you define, you will be able to select the key name you define as a parameter to the ViewContent event.

    We are working hard on a more robust website including more in-depth walkthroughs based on your questions, so please keep them coming!

    Thank you,
    Jacob

    Thread Starter Matt Magi

    (@matt94gt)

    Jacob,

    Great thanks, some documentation for newbies would be great to have. Including things on facebook’s end.

    Thanks for your responses.

    Plugin Author jacobmhulse

    (@jacobmhulse)

    Matt,

    We will be adding more documentation as the project develops and we do intend to cover some information from Facebook and to reference helpful articles they publish.

    If you find WP Facebook Pixel useful, then please give us a positive review, here: https://wordpress.org/support/view/plugin-reviews/wp-facebook-pixel?rate=1#postform

    If you don’t feel we deserve a 5 star rating, then please don’t review and let us know what we can do to improve! Ratings under 5 stars really hurt us.

    Best wishes,
    Jacob

    Hey Jacob,

    I’m trying to add the Facebook Pixel event for tracking leads to the “Additional Settings” session of the form like this:

    on_sent_ok: “fbq(‘track’, ‘Lead’);”

    It would appear that this should work without the need for a separate Thank You page, no? Problem is, when submitting the form, which you can find at http://www.mccartystrategies.com (bottom), the circle just spins without showing the confirmation message that the form was submitted successfully. I believe this is due to something in the JS from the FB Pixel and firing the event, but could you maybe shed some light?

    Many thanks,
    Matt

    Plugin Author jacobmhulse

    (@jacobmhulse)

    Matt,

    Thanks for the awesome question. This is outside what our support typically covers; however, I will try to look into this later today.

    I will get back to you as soon as I can,
    Jacob

    Plugin Contributor nightshiftapps

    (@nightshiftapps)

    Matt,

    It seems that there are a lot of posts out there indicating Contact Form 7’s on_sent_ok event is not firing. Most likely this is caused by an optimization plugin; however, I was unable to get it to work either. I was able to get the this to work: on_submit: "fbq('track', 'Lead');" however this fires off even if the form is not accepted.

    Until we release a complete integration with Contact Form 7, this may be your best bet.

    Please let me know what you think of this solution.

    Thanks,
    Troy

    Hei.
    This code on_submit: "fbq('track', 'Lead');" should be inserted in header.php page or in “Additional settings” of Contact Form ?
    Thank you in advance!

    Plugin Author jacobmhulse

    (@jacobmhulse)

    Hi Foliexperten,

    The entire snippet should be inserted into the Additional Settings of the form. That will trigger the form to run the fbq method when the user clicks the form’s submit button; however, as mentioned, this will run even if the form is not accepted due to validation error.

    Hope that helps!
    Jacob

    Thanks a lot @jacobmhulse

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Tracking contact form 7 submission’ is closed to new replies.