<?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 Tag: Google Analytics - Recent Topics</title>
		<link>https://legacy.forums.gravityhelp.com/tags/google-analytics</link>
		<description>Gravity Support Forums Tag: Google Analytics - Recent Topics</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 21:43:03 +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/tags/google-analytics/topics" rel="self" type="application/rss+xml" />

		<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>
		<item>
			<title>ddematas on "Forms views Not Accurate"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/forms-views-not-accurate#post-101799</link>
			<pubDate>Wed, 12 Dec 2012 18:21:39 +0000</pubDate>
			<dc:creator>ddematas</dc:creator>
			<guid isPermaLink="false">101799@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have 4 pop-up forms on a page. Three of the forms have the same exact amount of views. This seems like an error. Any suggestions?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>caconroy1 on "Onclick Google Event Tracking"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-google-event-tracking#post-195747</link>
			<pubDate>Wed, 03 Apr 2013 17:06:45 +0000</pubDate>
			<dc:creator>caconroy1</dc:creator>
			<guid isPermaLink="false">195747@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;br /&#62;
I've checked a number of the other forum topics on this but haven't been able to find an answer for my question.  I'm trying to add onclick event tracking for Google analytics and when I edited the function.php of my site it threw a parse syntax error.&#60;br /&#62;
Because my theme includes a specific html header/footer area, that is where the Google Analytics code lives, so I tried adding the event tracking code to the same area.  That simply tracked everyone who saw the button, rather than just those who actually clicked the button.&#60;br /&#62;
I've spent a number of hours trying to figure out how to add this code to the button on a Gravity form, is there something I'm missing?   Where can I edit the code related to the submit button?  The form I'm referring to lives in the footer of every page: &#60;a href=&#34;http://www.conroymediagroup.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.conroymediagroup.com/&#60;/a&#62;.&#60;br /&#62;
Thanks,&#60;br /&#62;
Cate
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MaximS on "Google Adwords conversion tracking"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-adwords-conversion-tracking#post-239567</link>
			<pubDate>Mon, 06 May 2013 05:55:13 +0000</pubDate>
			<dc:creator>MaximS</dc:creator>
			<guid isPermaLink="false">239567@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi &#60;/p&#62;
&#60;p&#62;Do you allow easy set up of Google Adwords conversion tracking?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ryanoelke on "Google Anaytics Tracking"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-anaytics-tracking#post-260067</link>
			<pubDate>Sat, 18 May 2013 14:18:47 +0000</pubDate>
			<dc:creator>ryanoelke</dc:creator>
			<guid isPermaLink="false">260067@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, I'm curious of ways I can track links going to a form and submissions. I did see that you all have documentation to redirect a confirmation to a url. Using a link in google analtyics and then creating a funnel, I could definitely do it that way. Just curious if there are any other ways that don't require a redirect. If it involves more hacking in the code than that, I'd probably just stick with a simple redirect, but figured I'd ask. &#60;/p&#62;
&#60;p&#62;thanks!&#60;br /&#62;
-ryan
&#60;/p&#62;</description>
		</item>
		<item>
			<title>caldiatech on "Google Analytics Tracking Addons Request"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-tracking-addons-request#post-232578</link>
			<pubDate>Wed, 01 May 2013 19:47:29 +0000</pubDate>
			<dc:creator>caldiatech</dc:creator>
			<guid isPermaLink="false">232578@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;we are switching from our own forms to gravity forms, and are need of a addon that tracks google Analytics tracking cookies, below we have the code used for that section&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// used to get the tracking cookie from google analytics and make it viewable
function tracking_cookie() {
	$GLOBALS[&#38;#39;version&#38;#39;] .= &#38;quot; (Tracking Cookie V1.6)&#38;quot;;
	$trackarr	= split(&#38;#39;[&#124;]&#38;#39;,$_COOKIE[&#38;quot;__utmz&#38;quot;]);
	$conversion = $_COOKIE[&#38;quot;Conversion&#38;quot;];
	for($i=0;$i&#38;lt;count($trackarr);$i++){
		$keyvalues=split(&#38;#39;[=]&#38;#39;,$trackarr[$i]);
		$key=substr($keyvalues[0],-6);
		switch ($key){
			case &#38;quot;utmcsr&#38;quot;:
				$cookie[&#38;#39;SearchEngine&#38;#39;]		=	$keyvalues[1];break;
			case &#38;quot;utmccn&#38;quot;:
				$cookie[&#38;#39;SearchCampaign&#38;#39;]	=	$keyvalues[1];break;
			case &#38;quot;utmcmd&#38;quot;:
				$cookie[&#38;#39;SearchType&#38;#39;]		=	$keyvalues[1];break;
			case &#38;quot;utmcct&#38;quot;:
				$cookie[&#38;#39;AdText&#38;#39;]			=	$keyvalues[1];break;
			case &#38;quot;utmctr&#38;quot;:
				$cookie[&#38;#39;Keyword&#38;#39;]			=	$keyvalues[1];break;
			case &#38;quot;mgclid&#38;quot;:
				$cookie[&#38;#39;isPPC&#38;#39;]			=	$keyvalues[1];break;
		}
	}
	if ($cookie[&#38;#39;isPPC&#38;#39;] !=&#38;#39;&#38;#39;) {$cookie[&#38;#39;SearchType&#38;#39;]=&#38;#39;PPC&#38;#39;;$cookie[&#38;#39;SearchEngine&#38;#39;]=&#38;#39;google&#38;#39;;}
	if ($conversion !=&#38;#39;&#38;#39;) {$cookie[&#38;#39;SearchType&#38;#39;]=&#38;#39;Conversion&#38;#39;;$cookie[&#38;#39;SearchEngine&#38;#39;]=&#38;#39;google&#38;#39;;}
	return $cookie;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;thats the function we used, we would then exec it&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$cookie = tracking_cookie(); // results from tracking cookie&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and then input it into the admin, or site owner email to display&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Search Engine: {$cookie[&#38;#39;SearchEngine&#38;#39;]}
Keyword: {$cookie[&#38;#39;Keyword&#38;#39;]}
Type: {$cookie[&#38;#39;SearchType&#38;#39;]}
Ad Text: {$cookie[&#38;#39;AdText&#38;#39;]}
Campaign Name: {$cookie[&#38;#39;SearchCampaign&#38;#39;]}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and it would display something like this&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Search Engine: search.toolbars.alexa.com
Keyword:
Type: referral
Campaign Name: (referral)&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;can this be created as a addon? we need one ASAP
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jmbarlow on "Google Analytics Event Tracking with Ajax Enabled"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-event-tracking-with-ajax-enabled#post-157864</link>
			<pubDate>Fri, 01 Mar 2013 12:59:27 +0000</pubDate>
			<dc:creator>jmbarlow</dc:creator>
			<guid isPermaLink="false">157864@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This might be useful for someone else. I wanted to be able to track form submissions on Ajax-enabled Gravity forms with an analytics event, and I also didn't want to create separate confirmation pages for each form, or edit the confirmation message individually.&#60;/p&#62;
&#60;p&#62;Pastie for sticking in the active theme's functions.php:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/6361095&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/6361095&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The (ajax) confirmation message is in a frame which doesn't have access to jquery or the google analytics library, so the - perhaps a bit inelegant - solution is to call the scripts again from within that frame. Might also work just by pasting these into the confirmation message.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>anndonnelly on "Tests OK for me but not for actual users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/tests-ok-for-me-but-not-for-actual-users#post-212702</link>
			<pubDate>Wed, 17 Apr 2013 07:31:17 +0000</pubDate>
			<dc:creator>anndonnelly</dc:creator>
			<guid isPermaLink="false">212702@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have PayPal integrated on 3 forms on my site.  The most used is: &#60;a href=&#34;http://company-formations-ireland.com/irish-limited-company-order-form/&#34; rel=&#34;nofollow&#34;&#62;http://company-formations-ireland.com/irish-limited-company-order-form/&#60;/a&#62;  I've tested it several times and it always goes to PayPal for me, but we haven't had one client that has gone through the complete process.  I've put it down to the user not waiting for it to load, etc. but last night we had a client that is pretty tech savvy who said it didn't go to PayPal -- it is possible he closed the browser first, but I just wanted to check to see if anyone else has this or any recommendations on what I should check for?  &#60;/p&#62;
&#60;p&#62;Also I want to set these as goals on Google Analytics, any advice on how best to do that?&#60;/p&#62;
&#60;p&#62;Thanks, Ann
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Samara on "Track traffic source / referral data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/track-traffic-source-referral-data#post-171485</link>
			<pubDate>Thu, 14 Mar 2013 18:55:58 +0000</pubDate>
			<dc:creator>Samara</dc:creator>
			<guid isPermaLink="false">171485@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would like to be able to track my leads back to their source. This is truly invaluable data to know and understand so as we make the most of our highest quality referral sources. &#60;/p&#62;
&#60;p&#62;I am wondering, is there any way to track a lead back to its source with Gravity Forms? I use Google Analytics, but it anonymizes data and doesn't let me see where individual conversions came from.  &#60;/p&#62;
&#60;p&#62; I found this addon, which does something similar, but doesn't look to be supported anymore: &#60;a href=&#34;http://wordpress.org/extend/plugins/infogeniuz-advanced-form-analytics-for-gravity-forms/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/infogeniuz-advanced-form-analytics-for-gravity-forms/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Ideally, I would like to be able to chart this data (even if I need to develop something that just uses the raw data).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Tico on "Pull information from tagged URL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pull-information-from-tagged-url#post-188134</link>
			<pubDate>Thu, 28 Mar 2013 15:20:58 +0000</pubDate>
			<dc:creator>Tico</dc:creator>
			<guid isPermaLink="false">188134@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Say a user clicks on a banner with link:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.samplelink.com/?utm_source=Banner2&#34; rel=&#34;nofollow&#34;&#62;http://www.samplelink.com/?utm_source=Banner2&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Is it possible, with a hidden field, to pull the 'utm-source' info from the URL? (In this case 'Banner2')&#60;/p&#62;
&#60;p&#62;(note: I searched for similar topics, but they require Gravity license to view answer...)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
