<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Google Analytics E-commerce tracking codes for gravity forms</title>
		<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-e-commerce-tracking-codes-for-gravity-forms</link>
		<description>Gravity Support Forums Topic: Google Analytics E-commerce tracking codes for gravity forms</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Apr 2026 08:56:37 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/google-analytics-e-commerce-tracking-codes-for-gravity-forms" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Google Analytics E-commerce tracking codes for gravity forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-e-commerce-tracking-codes-for-gravity-forms#post-78753</link>
			<pubDate>Wed, 03 Oct 2012 17:18:42 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">78753@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@bolsidon, I have not seen a lot of support requests in the forum from you.  Because you have a developer's license, maybe you're using priority support?  In any event, if you having trouble with bugs or limitations, please feel free to post them in the forums and we will help you where we can.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>boldison on "Google Analytics E-commerce tracking codes for gravity forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-e-commerce-tracking-codes-for-gravity-forms#post-78745</link>
			<pubDate>Wed, 03 Oct 2012 16:40:10 +0000</pubDate>
			<dc:creator>boldison</dc:creator>
			<guid isPermaLink="false">78745@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Not sure it's going to happen. A few other limitations/bugs using GF too, so we're in the process of moving away...if that helps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Paper Tower on "Google Analytics E-commerce tracking codes for gravity forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-e-commerce-tracking-codes-for-gravity-forms#post-78738</link>
			<pubDate>Wed, 03 Oct 2012 16:19:22 +0000</pubDate>
			<dc:creator>Paper Tower</dc:creator>
			<guid isPermaLink="false">78738@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'd love a solution for this as well!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>boldison on "Google Analytics E-commerce tracking codes for gravity forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-e-commerce-tracking-codes-for-gravity-forms#post-72253</link>
			<pubDate>Thu, 23 Aug 2012 09:24:53 +0000</pubDate>
			<dc:creator>boldison</dc:creator>
			<guid isPermaLink="false">72253@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;I am trying to do exactly what you suggest. about using that hook.&#60;/p&#62;
&#60;p&#62;How would I go about getting all the info I need into that function and telling Google of the transaction using their Javascript example?&#60;/p&#62;
&#60;p&#62;Kind regards,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>smlfrtn on "Google Analytics E-commerce tracking codes for gravity forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-e-commerce-tracking-codes-for-gravity-forms#post-63533</link>
			<pubDate>Mon, 25 Jun 2012 13:15:02 +0000</pubDate>
			<dc:creator>smlfrtn</dc:creator>
			<guid isPermaLink="false">63533@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Has anyone been able to find a clear solution for this issue? jloosli's solution looks like it probably works, but is also very complicated from my perspective (not much experience with the custom PHP/JS solution he provided.)&#60;/p&#62;
&#60;p&#62;The difficulty I'm having is that I understand that the GA E-commerce script needs a receipt of some kind. Which seems pretty straightforward. However, I'm not sure if this can be done on a separate redirect page. Can it? If so, is there documentation anywhere?&#60;/p&#62;
&#60;p&#62;For example, my form redirects to a 'Thank You' page separate from the payment form. That page just includes text. Is it very easy to include the 'receipt' there? That way I can include the GA script and thank you text in the same location.&#60;/p&#62;
&#60;p&#62;Any help or insight here is greatly appreciated!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jloosli on "Google Analytics E-commerce tracking codes for gravity forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-e-commerce-tracking-codes-for-gravity-forms#post-51184</link>
			<pubDate>Fri, 02 Mar 2012 19:07:35 +0000</pubDate>
			<dc:creator>jloosli</dc:creator>
			<guid isPermaLink="false">51184@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So I've been struggling with this as well. I decided to tie into the gform_confirmation hook instead of gform_paypal_fulfillment hook since gform_confirmation actually deals with the what's showing up in the browser instead of what's going on in the back end (since analytics is javascript based).&#60;/p&#62;
&#60;p&#62;Anyway, here's the gist of what I do:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;Check to see if the submitted form has a 'product field'...if it does, I assume it's an e-Commerce transaction
&#60;/li&#62;
&#60;li&#62;I generate the _gaq javacript code to place on the page (see &#60;a href=&#34;http://code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html)&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html)&#60;/a&#62;
&#60;/li&#62;
&#60;li&#62;If the confirmation is text, I append it to the bottom of the text
&#60;/li&#62;
&#60;li&#62;If the confirmation is a redirect, I send the _gaq javascript, plus I send a window.location='{page/to/redirect/to}' to send the browser to the new page
&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;It's not exactly robust and I haven't tested it extensively, but if anyone has any feedback as to improvements on this, I would appreciate it.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://gist.github.com/1962059&#34; rel=&#34;nofollow&#34;&#62;https://gist.github.com/1962059&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Google Analytics E-commerce tracking codes for gravity forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-e-commerce-tracking-codes-for-gravity-forms#post-46059</link>
			<pubDate>Tue, 10 Jan 2012 21:02:51 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46059@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
Do I paste the code: add_filter(&#34;gform_paypal_fulfillment&#34;, &#34;process_order&#34;, 10, 4); to the top line of paypal.php
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;No, that code goes into your theme's functions.php file.&#60;/p&#62;
&#60;p&#62;And I think you are correct about needing an &#34;order complete&#34; page to track successful completion of the transaction.  I would use that vs using a text confirmation.&#60;/p&#62;
&#60;p&#62;This is not witchcraft, but it might be voodoo.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>andrew carbn on "Google Analytics E-commerce tracking codes for gravity forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-e-commerce-tracking-codes-for-gravity-forms#post-45948</link>
			<pubDate>Tue, 10 Jan 2012 10:02:17 +0000</pubDate>
			<dc:creator>andrew carbn</dc:creator>
			<guid isPermaLink="false">45948@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Me again! :)&#60;/p&#62;
&#60;p&#62;I do have questions now...&#60;/p&#62;
&#60;p&#62;I have been trying to get this working but still stuck and my brain wont come up with any more ideas to try.&#60;/p&#62;
&#60;p&#62;I'm using paypal.&#60;br /&#62;
I only want to track paid successfull orders.&#60;/p&#62;
&#60;p&#62;So lets say I wanted to use the gform_paypal_fullfillment hook like you have suggested:&#60;/p&#62;
&#60;p&#62;Do I paste the code: add_filter(&#34;gform_paypal_fulfillment&#34;, &#34;process_order&#34;, 10, 4); to the top line of paypal.php&#60;/p&#62;
&#60;p&#62;Where does GA come into place? I assume it needs an 'order complete' page after being redirected from PayPal to see the data to track in ecommerce? &#60;/p&#62;
&#60;p&#62;Sorry for this, I am good at making a guess, but here it just seems like witchcraft :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Google Analytics E-commerce tracking codes for gravity forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-e-commerce-tracking-codes-for-gravity-forms#post-43566</link>
			<pubDate>Fri, 09 Dec 2011 16:19:03 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">43566@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Andrew,&#60;/p&#62;
&#60;p&#62;This is a good idea and is feasible now with some custom code. A good place to start on the Google Analytics side of things is here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;As far as the Gravity Forms side of things... this will depend on if you're using PayPal or not. If so, it gets a little trickier. You'll need to decide if you want to track all orders or only orders that were completed successfully (aka paid).&#60;/p&#62;
&#60;p&#62;Assuming you want to track paid orders, you can use the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_paypal_fulfillment&#34; rel=&#34;nofollow&#34;&#62;gform_paypal_fullfillment&#60;/a&#62; hook to integrate with the GA functionality to capture these leads.&#60;/p&#62;
&#60;p&#62;If you decide to tackle this, let me know if you have any questions along the way. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>andrew carbn on "Google Analytics E-commerce tracking codes for gravity forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-e-commerce-tracking-codes-for-gravity-forms#post-43559</link>
			<pubDate>Fri, 09 Dec 2011 13:20:44 +0000</pubDate>
			<dc:creator>andrew carbn</dc:creator>
			<guid isPermaLink="false">43559@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would love to know too!&#60;/p&#62;
&#60;p&#62;I don't understand why people are not tracking payments made through Gravity Forms.&#60;/p&#62;
&#60;p&#62;I know GF were never supposed to replace an ecommerce system... but tracking the purchase amount is extremely important.&#60;/p&#62;
&#60;p&#62;Has anybody got any experiance or know where to begin with this?&#60;/p&#62;
&#60;p&#62;Cheers! :)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
