<?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 Tracking Addons Request</title>
		<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-tracking-addons-request</link>
		<description>Gravity Support Forums Topic: Google Analytics Tracking Addons Request</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 00:59:58 +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-tracking-addons-request" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Google Analytics Tracking Addons Request"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-tracking-addons-request#post-233946</link>
			<pubDate>Thu, 02 May 2013 15:44:18 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">233946@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Additionally, a priority support ticket was opened.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Google Analytics Tracking Addons Request"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-analytics-tracking-addons-request#post-233945</link>
			<pubDate>Thu, 02 May 2013 15:43:00 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">233945@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for the suggestion.  However, it is not going to be created as an add-on ASAP.
&#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>

	</channel>
</rss>
