<?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: Onclick Event Tracking for &#34;Submit&#34; Without Editing Plugin Code</title>
		<link>https://legacy.forums.gravityhelp.com/topic/onclick-event-tracking-for-submit-without-editing-plugin-code</link>
		<description>Gravity Support Forums Topic: Onclick Event Tracking for &quot;Submit&quot; Without Editing Plugin Code</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 11:54:13 +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/onclick-event-tracking-for-submit-without-editing-plugin-code" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Onclick Event Tracking for &#34;Submit&#34; Without Editing Plugin Code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-event-tracking-for-submit-without-editing-plugin-code#post-72161</link>
			<pubDate>Wed, 22 Aug 2012 15:42:34 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">72161@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You're welcome.  Thanks for updating this topic.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>unodewaal on "Onclick Event Tracking for &#34;Submit&#34; Without Editing Plugin Code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-event-tracking-for-submit-without-editing-plugin-code#post-72137</link>
			<pubDate>Wed, 22 Aug 2012 14:17:13 +0000</pubDate>
			<dc:creator>unodewaal</dc:creator>
			<guid isPermaLink="false">72137@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris - just to say that the solution worked perfectly. Everything seems to be running like a charm. I've setup goals in Analytics with the various form names I required so these should be pulling through from now on.&#60;br /&#62;
I've updated the tabbing on the sidebar form as well - I didn't realize there was an error there.&#60;/p&#62;
&#60;p&#62;Thanks for your help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Onclick Event Tracking for &#34;Submit&#34; Without Editing Plugin Code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-event-tracking-for-submit-without-editing-plugin-code#post-71628</link>
			<pubDate>Sun, 19 Aug 2012 17:09:23 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">71628@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That looks correct to me. Let us know here how that is working after a couple days. I submitted a test.&#60;/p&#62;
&#60;p&#62;You have an issue with the main form and sidebar newsletter form conflicting with the tabindex.  Tabbing off the first name field I ended up in the sidebar, then tabbing again I was at the last name field.  If this issue is present on your other forms (not just the test form) you can change the tabindex for the sidebar form (it's a setting when add the form widget to your sidebar) - click the &#34;advanced options&#34; and you will see the setting there.  Screenshot: &#60;a href=&#34;http://minus.com/l17NWnDJ8BXz9&#34; rel=&#34;nofollow&#34;&#62;http://minus.com/l17NWnDJ8BXz9&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Just set the sidebar to some high number that is greater than the number of elements in your main form.  I used 50 here.  It could be 4 for this particular page, or you could make it 955.  The index for the &#34;enter email&#34; field in the sidebar form would 955, and the &#34;confirm email&#34; would be 956.  &#60;/p&#62;
&#60;p&#62;There are other ways to do it (when you embed the form in the page, or via functions.php) but the widget setting is probably easiest.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>unodewaal on "Onclick Event Tracking for &#34;Submit&#34; Without Editing Plugin Code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-event-tracking-for-submit-without-editing-plugin-code#post-71624</link>
			<pubDate>Sun, 19 Aug 2012 16:00:05 +0000</pubDate>
			<dc:creator>unodewaal</dc:creator>
			<guid isPermaLink="false">71624@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks a lot - I've managed to paste it in and it looks like this now: &#60;a href=&#34;http://pastie.org/4551792&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4551792&#60;/a&#62;&#60;br /&#62;
I had some syntax errors initially, but it seems to be working OK now. I haven't been able to test it fully with Analytics (Will try debugging just now), but will have a look tomorrow. The demo form I have is up here: &#60;a href=&#34;http://10and5.com/demo-forms/&#34; rel=&#34;nofollow&#34;&#62;http://10and5.com/demo-forms/&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Thanks for your help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Onclick Event Tracking for &#34;Submit&#34; Without Editing Plugin Code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-event-tracking-for-submit-without-editing-plugin-code#post-71622</link>
			<pubDate>Sun, 19 Aug 2012 15:30:34 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">71622@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is the documentation for the form object: &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Form_Object&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Form_Object&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You can use:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;?php echo $form[&#38;quot;title&#38;quot;]; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;To get the form title.&#60;/p&#62;
&#60;p&#62;Line 10 in the paste would look like this then:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;_gaq.push([&#38;#39;_trackEvent&#38;#39;, &#38;#39;Forms&#38;#39;, &#38;#39;Submission&#38;#39;, &#38;#39;&#38;lt;?php echo $form[&#38;quot;title&#38;quot;]; ?&#38;gt;&#38;#39;]);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I didn't try that to be sure the quotes are correct, but that is basically how you would do it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>unodewaal on "Onclick Event Tracking for &#34;Submit&#34; Without Editing Plugin Code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-event-tracking-for-submit-without-editing-plugin-code#post-71620</link>
			<pubDate>Sun, 19 Aug 2012 15:25:05 +0000</pubDate>
			<dc:creator>unodewaal</dc:creator>
			<guid isPermaLink="false">71620@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think it would - which variable/function would I use to echo out the form title? Assuming it would replace the 'GA Testing Form FINAL' in the ga.push below (line 10 in the paste)?&#60;/p&#62;
&#60;p&#62;_gaq.push(['_trackEvent', 'Forms', 'Submission', 'GA Testing Form FINAL']);
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Onclick Event Tracking for &#34;Submit&#34; Without Editing Plugin Code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-event-tracking-for-submit-without-editing-plugin-code#post-71612</link>
			<pubDate>Sun, 19 Aug 2012 14:35:45 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">71612@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you eliminate line #6 in the pastie, the tracking code will be added to all forms.   Would that work for you?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>unodewaal on "Onclick Event Tracking for &#34;Submit&#34; Without Editing Plugin Code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-event-tracking-for-submit-without-editing-plugin-code#post-71609</link>
			<pubDate>Sun, 19 Aug 2012 13:07:28 +0000</pubDate>
			<dc:creator>unodewaal</dc:creator>
			<guid isPermaLink="false">71609@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We have a similar requirement, but one that the functions.php solution does not cater for.&#60;br /&#62;
We have created multiple forms, and continue to create and archive forms on a continual basis (we use it for quick competition entry mechanisms and other on-the-fly usage).&#60;br /&#62;
Our requirement is to have tracking on each form and not just a single one - the solution above only allows you to track conversions for a single form, and if you want to track other forms you'd need to change the form ID's.&#60;br /&#62;
A simple solution for me would be to add tracking to the submit button that is something like this:&#60;br /&#62;
 _gaq.push(['_trackEvent', 'Forms', 'Submission', '&#38;lt;form name variable']);&#60;/p&#62;
&#60;p&#62;This then gets added to EVERY single submit button on every single form. The variable would allow you to track the different forms.&#60;/p&#62;
&#60;p&#62;I would imagine that a simple checkbox in the admin panel that says &#34;track submissions&#34; would let you pick if you want to track submissions on that form or not.&#60;/p&#62;
&#60;p&#62;Easier speculated than done, but this would be a fantastic feature or add-on.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Onclick Event Tracking for &#34;Submit&#34; Without Editing Plugin Code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-event-tracking-for-submit-without-editing-plugin-code#post-60630</link>
			<pubDate>Tue, 29 May 2012 11:01:30 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">60630@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Have a look at the following:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/onclick-tracking#post-7734&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/onclick-tracking#post-7734&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>chasef on "Onclick Event Tracking for &#34;Submit&#34; Without Editing Plugin Code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-event-tracking-for-submit-without-editing-plugin-code#post-60489</link>
			<pubDate>Sun, 27 May 2012 18:17:02 +0000</pubDate>
			<dc:creator>chasef</dc:creator>
			<guid isPermaLink="false">60489@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've been reading up on how to add onclick event tracking to the &#34;submit&#34; button on gravity forms, but most of the answers require me to write the tracking code into the actual code for the plugin. I don't want to get that technical and won't it be removed every time I update Gravity Forms? So what I want to know is if there is a way to just enter the onclick event tracking code for Google Analytics in the Form Editor?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
