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.

Google Analytics conversion tracking

  1. I have read several posts here about tracking submisions via GA, but i have to say that i am not really satisfied with these solutions. for the price we pay for this plugin it should be easier to track submissions. Even your old Contact Form 7 had a way to easily track the data. There are soo many other plugins for gravity forms, but there is none for tracking it with Google Analytics. How can that be? Its aaaalllll just about tracking submissions and sales!

    Anyways, I cant use the inline code method mentioned at https://skitch.com/carlhancock/8b86k/edit-forms-gravity-forms-v1.6-wordpress, because i am using a thankyou page. i also cant place the code in there as well, because i am using the same page with a few other processes and i got a tracking code int there already.

    Is there an easy way to at a code like "_gaq.push(['_trackEvent', 'download', 'Download PDF 1']);" to the submit button of a form?

    Posted 12 years ago on Friday March 23, 2012 | Permalink
  2. I'm looking for an answer to this too.

    Posted 12 years ago on Wednesday March 28, 2012 | Permalink
  3. just noticed, that this method doesnt also work if you use Wordpress MU, because the forms on all sites use the same form IDs

    Posted 12 years ago on Friday April 20, 2012 | Permalink
  4. Alright. I guess i figured this out now, how to use track google analytics and using at the same time always the same thank you page. Works even with Wordpress MU:

    Enter this in your confirmation message (type = text):

    <script type="text/javascript">
    	jQuery(document).ready(function($) {
                 location = 'http://www.thankyougpage.com/';
    		_gaq.push(['_trackPageview', '/goal_1/submission.html']);
    		_gaq.push(['_trackEvent', 'Inbound', 'campaignname']);
    	});
    </script>
    Posted 12 years ago on Friday April 20, 2012 | Permalink
  5. webbizideas
    Member

    Hi Guys,

    Why all this code just to track Google Goals?? Why not use ONE thank you page and just MAKE UP your own EXACT MATCH URL's in Google Analytics, without messing with a bunch of code?

    Scenario: I have 15 forms. I have ONE thank you page for all of them. But I have 15 EXACT MATCH urls to track each form individually in google analytics.

    Step 1 - Create your ONE thank you page (http://www.example.com/thank-you)

    Step 2 - In Gravity Forms, use the redirect method, but MAKE UP ANY paramaters in the goal URL you want. Example:

    http://www.example.com/thank-you?form=1
    http://www.example.com/thank-you?form=2
    http://www.example.com/thank-you?form=2
    http://www.example.com/thank-you?country=unitedstates
    http://www.example.com/thank-you?state=mn
    http://www.example.com/thank-you?whatever=youwant

    All that has to remain constant is the ONE thank you page URL you created. The MADE UP paramaters at the end of the URL will display your original thank you page just fine in Wordpress.

    Posted 12 years ago on Thursday May 3, 2012 | Permalink
  6. webbizideas: i see your idea. that would mean to make some huge changes to adapt all the different variables, otherwise you need to track for each form the indnvidual event campaignname and campaigncategory (same for pageview pushes).

    Posted 12 years ago on Wednesday May 16, 2012 | Permalink

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