<?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 Event Trigger and Jquery Error.</title>
		<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-event-trigger-and-jquery-error</link>
		<description>Gravity Support Forums Topic: Google Analytics Event Trigger and Jquery Error.</description>
		<language>en-US</language>
		<pubDate>Tue, 07 Apr 2026 18:28:29 +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-event-trigger-and-jquery-error" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "Google Analytics Event Trigger and Jquery Error."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-event-trigger-and-jquery-error#post-349766</link>
			<pubDate>Fri, 28 Jun 2013 08:22:27 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">349766@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Are you running a multi-page form by chance and are you using AJAX on the form embed?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>btrilli on "Google Analytics Event Trigger and Jquery Error."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-event-trigger-and-jquery-error#post-346314</link>
			<pubDate>Wed, 26 Jun 2013 16:50:19 +0000</pubDate>
			<dc:creator>btrilli</dc:creator>
			<guid isPermaLink="false">346314@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am adding the following code to the function.php file to achieve Google Analytics Event Triggers. I believe the code is right.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_after_submission&#38;quot;, &#38;quot;gf_ga_tracking&#38;quot;, 10, 2);
function gf_ga_tracking($entry, $form) {
?&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
 jQuery(document).ready(function($) {
 _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;]);
});
&#38;lt;/script&#38;gt;
&#38;lt;?php }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but I am receiving a ReferenceError: jQuery is not defined @ &#60;a href=&#34;http://domain.com/request-service/#gf_5:3&#34; rel=&#34;nofollow&#34;&#62;http://domain.com/request-service/#gf_5:3&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I know I have to have jQuery added to the page. But I figured it was taken care of by another plugin from the following code on my page:&#60;/p&#62;
&#60;p&#62;&#38;lt;script type='text/javascript' src='http://domain.com/wp-content/plugins/wp-lightbox/js/jquery.min.js?ver=1.7.1'&#38;gt;&#38;lt;/script&#38;gt;&#60;/p&#62;
&#60;p&#62;Does it need to be a specific version?&#60;br /&#62;
I disabled the plugin and I tried adding jquery by adding the following code into function.php:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;init&#38;#39;, &#38;#39;add_jquery&#38;#39;);
function add_jquery() {
	wp_enqueue_script(&#38;#39;jquery&#38;#39;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;now it has the following code in the page source: &#60;code&#62;&#38;lt;script type=&#38;#39;text/javascript&#38;#39; src=&#38;#39;http://domain.com/wp-includes/js/jquery/jquery.js?ver=1.8.3&#38;#39;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;but still gives me the jquery not defined error.&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
Greg
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
