PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Conversion tracking multiple pages

  1. There are a lot of topics to be found about Google Analytics conversion tracking in GF.
    One question is not answered though or I am just looking in the wrong direction.

    I want to build a funnel towards a goal for a GF form with multiple pages.
    How can I do this?

    Thanks!

    Posted 12 years ago on Monday October 29, 2012 | Permalink
  2. Do you mean you want to track success or progress on each page of a multipage form? If so, what have you tried so far?

    Posted 12 years ago on Wednesday October 31, 2012 | Permalink
  3. Yes I want to track the success of the form and see on which page of the form they are leaving the form.

    I have tried to describe every url as <url>#gf1 etc but that is not consistent.

    Any tips?

    Posted 12 years ago on Wednesday October 31, 2012 | Permalink
  4. One multi-page forms, you can use gform_page_loaded to run your custom JavaScript:
    http://www.gravityhelp.com/documentation/page/Gform_page_loaded

    Does that help to load your GA code?

    Posted 12 years ago on Wednesday October 31, 2012 | Permalink
  5. That seems to be the solution but where must I put this code?
    Should I create an HTML field with this code on every page in the form?

    Sorry for the late reply!

    Posted 12 years ago on Friday November 9, 2012 | Permalink
  6. I found this solution and implemented it just before </head>. Does this look OK to you?

    <?php
    if (is_page(379) || is_page(552)) {
    ?>
    <script type="text/javascript">// <![CDATA[
    $(document).bind('gform_page_loaded', function(event, form_id, current_page){
        _gaq.push(['_trackPageview'], window.location.pathname + current_page);
    });
    // ]]></script>
    <?
    }
    ?>
    Posted 12 years ago on Friday November 9, 2012 | Permalink
  7. Any thoughts on the above?

    Posted 12 years ago on Friday November 16, 2012 | Permalink
  8. Does it work for you?

    That is one way to add the script to the head for those two specific pages. If those are the only pages you need to worry about, that procedure should work just fine.

    Posted 12 years ago on Saturday November 17, 2012 | Permalink
  9. It seems to be OK! Topic answered.

    Posted 12 years ago on Wednesday November 28, 2012 | Permalink
  10. Thank you for following up.

    Posted 12 years ago on Saturday December 1, 2012 | Permalink

This topic has been resolved and has been closed to new replies.