<?xml version="1.0" encoding="UTF-8"?><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>Comments on: Integrate Google Analytics with Flash &#124; Tutorial</title>
	<atom:link href="http://blog.circlecube.com/2008/01/28/integrate-google-analytics-with-flash-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.circlecube.com/2008/01/tutorial/integrate-google-analytics-with-flash-tutorial/</link>
	<description>Evan Mullins</description>
	<pubDate>Thu, 04 Dec 2008 23:11:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Loony</title>
		<link>http://blog.circlecube.com/2008/01/tutorial/integrate-google-analytics-with-flash-tutorial/#comment-972</link>
		<dc:creator>Loony</dc:creator>
		<pubDate>Mon, 24 Nov 2008 09:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/01/28/integrate-google-analytics-with-flash-tutorial/#comment-972</guid>
		<description>There still seems to be a problem. But thank you very much anyway ; I appreciate your time.</description>
		<content:encoded><![CDATA[<p>There still seems to be a problem. But thank you very much anyway ; I appreciate your time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Mullins</title>
		<link>http://blog.circlecube.com/2008/01/tutorial/integrate-google-analytics-with-flash-tutorial/#comment-970</link>
		<dc:creator>Evan Mullins</dc:creator>
		<pubDate>Wed, 19 Nov 2008 15:39:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/01/28/integrate-google-analytics-with-flash-tutorial/#comment-970</guid>
		<description>@Loony - if you look closely you'll see the type... traceGA != trackGA, my bad.</description>
		<content:encoded><![CDATA[<p>@Loony - if you look closely you&#8217;ll see the type&#8230; traceGA != trackGA, my bad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loony</title>
		<link>http://blog.circlecube.com/2008/01/tutorial/integrate-google-analytics-with-flash-tutorial/#comment-969</link>
		<dc:creator>Loony</dc:creator>
		<pubDate>Wed, 19 Nov 2008 09:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/01/28/integrate-google-analytics-with-flash-tutorial/#comment-969</guid>
		<description>There seems to be a problem with the line:
traceGA("buttonRelease/66"); It appears yellow meaning there is an error.

Here is what I have once I added the code you gave to me:
on (release) {
    traceGA(”buttonRelease/66″);
    _root.gotoAndPlay(66);
}

function trackGA(action:String) {
ExternalInterface.call(”pageTracker._trackPageview(’/”+action+”‘)”);
trace(”Google Analytics Tracking: ” + action);
}


Now the button is inactive. Any idea?</description>
		<content:encoded><![CDATA[<p>There seems to be a problem with the line:<br />
traceGA(&#8221;buttonRelease/66&#8243;); It appears yellow meaning there is an error.</p>
<p>Here is what I have once I added the code you gave to me:<br />
on (release) {<br />
    traceGA(”buttonRelease/66″);<br />
    _root.gotoAndPlay(66);<br />
}</p>
<p>function trackGA(action:String) {<br />
ExternalInterface.call(”pageTracker._trackPageview(’/”+action+”‘)”);<br />
trace(”Google Analytics Tracking: ” + action);<br />
}</p>
<p>Now the button is inactive. Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loony</title>
		<link>http://blog.circlecube.com/2008/01/tutorial/integrate-google-analytics-with-flash-tutorial/#comment-968</link>
		<dc:creator>Loony</dc:creator>
		<pubDate>Wed, 19 Nov 2008 08:56:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/01/28/integrate-google-analytics-with-flash-tutorial/#comment-968</guid>
		<description>wow thank you so much for being so quick at replying. I'm trying it now.</description>
		<content:encoded><![CDATA[<p>wow thank you so much for being so quick at replying. I&#8217;m trying it now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Mullins</title>
		<link>http://blog.circlecube.com/2008/01/tutorial/integrate-google-analytics-with-flash-tutorial/#comment-966</link>
		<dc:creator>Evan Mullins</dc:creator>
		<pubDate>Tue, 18 Nov 2008 13:22:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/01/28/integrate-google-analytics-with-flash-tutorial/#comment-966</guid>
		<description>@Looney - try this:

on (release) {
     traceGA("buttonRelease/66");
     _root.gotoAndPlay(66);
}


function trackGA(action:String) {
     //Old Google Analytics Code
     ExternalInterface.call("urchinTracker('/"+action+"')");
     //New Google Analytics Code
     ExternalInterface.call("pageTracker._trackPageview('/"+action+"')");
     trace("Google Analytics Tracking: " + action);
}

You can send a different action on each button, and analytics will tell you reports for each button pressed. Or you could put the analytics call onto the timeline, so when they go to a certain frame the function is called to log the tracking.</description>
		<content:encoded><![CDATA[<p>@Looney - try this:</p>
<p>on (release) {<br />
     traceGA(&#8221;buttonRelease/66&#8243;);<br />
     _root.gotoAndPlay(66);<br />
}</p>
<p>function trackGA(action:String) {<br />
     //Old Google Analytics Code<br />
     ExternalInterface.call(&#8221;urchinTracker(&#8217;/&#8221;+action+&#8221;&#8216;)&#8221;);<br />
     //New Google Analytics Code<br />
     ExternalInterface.call(&#8221;pageTracker._trackPageview(&#8217;/&#8221;+action+&#8221;&#8216;)&#8221;);<br />
     trace(&#8221;Google Analytics Tracking: &#8221; + action);<br />
}</p>
<p>You can send a different action on each button, and analytics will tell you reports for each button pressed. Or you could put the analytics call onto the timeline, so when they go to a certain frame the function is called to log the tracking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loony</title>
		<link>http://blog.circlecube.com/2008/01/tutorial/integrate-google-analytics-with-flash-tutorial/#comment-965</link>
		<dc:creator>Loony</dc:creator>
		<pubDate>Tue, 18 Nov 2008 12:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/01/28/integrate-google-analytics-with-flash-tutorial/#comment-965</guid>
		<description>Hi.
Thanks for all the info.
My website is all flash (swishmax to be precised).
I have a menu with several buttons. Once a button is released the movie goes to a frame and plays it. How do I add google analytics to track that somebody clicked that button?
Here is the simple code - but unfortunately no answer:

on (release) {
    _root.gotoAndPlay(66);
}

Please make it real simple! Thank you</description>
		<content:encoded><![CDATA[<p>Hi.<br />
Thanks for all the info.<br />
My website is all flash (swishmax to be precised).<br />
I have a menu with several buttons. Once a button is released the movie goes to a frame and plays it. How do I add google analytics to track that somebody clicked that button?<br />
Here is the simple code - but unfortunately no answer:</p>
<p>on (release) {<br />
    _root.gotoAndPlay(66);<br />
}</p>
<p>Please make it real simple! Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mukesh</title>
		<link>http://blog.circlecube.com/2008/01/tutorial/integrate-google-analytics-with-flash-tutorial/#comment-962</link>
		<dc:creator>Mukesh</dc:creator>
		<pubDate>Mon, 17 Nov 2008 14:58:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/01/28/integrate-google-analytics-with-flash-tutorial/#comment-962</guid>
		<description>Thanks Evan. Actually I had waited for 48 hours before contacting you. What you suggested about Firebug sounds cool. That will help me in finding if I am making any syntactical or other mistake.

Thanks,
Mukesh</description>
		<content:encoded><![CDATA[<p>Thanks Evan. Actually I had waited for 48 hours before contacting you. What you suggested about Firebug sounds cool. That will help me in finding if I am making any syntactical or other mistake.</p>
<p>Thanks,<br />
Mukesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Mullins</title>
		<link>http://blog.circlecube.com/2008/01/tutorial/integrate-google-analytics-with-flash-tutorial/#comment-961</link>
		<dc:creator>Evan Mullins</dc:creator>
		<pubDate>Mon, 17 Nov 2008 03:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/01/28/integrate-google-analytics-with-flash-tutorial/#comment-961</guid>
		<description>Mukesh - Nope, it should show up, be sure to give about 24 hours for the hits to show up in your reports. But in this example I make calls to &lt;code&gt;trackGA(”ball/”+this.ballNum+”/pressed/”);&lt;/code&gt;, so you can search in the top content page of your reports for a page containing (in this example) "ball/" or "/pressed/" and if everything happened correctly they should show up there.

If you aren't as patient as that though, you can see live evidence of the tracking being sent to google analytics... Get the firebug extension for firefox and you can easily monitor network calls. This will show you the header and parameters sent with all calls to google analytics, you can see the path that gets sent! Pretty cool, eh? It will look like this "GET __utm.gif?utmwv=......sending tons of parameteres!</description>
		<content:encoded><![CDATA[<p>Mukesh - Nope, it should show up, be sure to give about 24 hours for the hits to show up in your reports. But in this example I make calls to <code>trackGA(”ball/”+this.ballNum+”/pressed/”);</code>, so you can search in the top content page of your reports for a page containing (in this example) &#8220;ball/&#8221; or &#8220;/pressed/&#8221; and if everything happened correctly they should show up there.</p>
<p>If you aren&#8217;t as patient as that though, you can see live evidence of the tracking being sent to google analytics&#8230; Get the firebug extension for firefox and you can easily monitor network calls. This will show you the header and parameters sent with all calls to google analytics, you can see the path that gets sent! Pretty cool, eh? It will look like this &#8220;GET __utm.gif?utmwv=&#8230;&#8230;sending tons of parameteres!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mukesh</title>
		<link>http://blog.circlecube.com/2008/01/tutorial/integrate-google-analytics-with-flash-tutorial/#comment-960</link>
		<dc:creator>Mukesh</dc:creator>
		<pubDate>Sun, 16 Nov 2008 15:12:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/01/28/integrate-google-analytics-with-flash-tutorial/#comment-960</guid>
		<description>Hi,

I tried this code, but in my Google Analytics page I don't see any separate entries for the events that I created. Do I need to create some corresponding entries in GA settings manually too?

Thanks,
Mukesh</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I tried this code, but in my Google Analytics page I don&#8217;t see any separate entries for the events that I created. Do I need to create some corresponding entries in GA settings manually too?</p>
<p>Thanks,<br />
Mukesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Mullins</title>
		<link>http://blog.circlecube.com/2008/01/tutorial/integrate-google-analytics-with-flash-tutorial/#comment-957</link>
		<dc:creator>Evan Mullins</dc:creator>
		<pubDate>Thu, 13 Nov 2008 19:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/01/28/integrate-google-analytics-with-flash-tutorial/#comment-957</guid>
		<description>@Avangelist - This is a tutorial to track an event (something that happens in Flash) in Google Analytics as a pageview.

This is a simple example about how to implement this idea. It can be pushed much further. This example shows how to track events with this ball (user interaction and not) in Google analytics. If we wanted to havea button going to another page it may be better to just put the analytics code on that page.

You have a swf with buttons, which click through for pages? are these "pages" separate html pages or frames in your flash?
You want to track the click of the button? That would be the exact way I track clicking this ball in the example. I'm placing the tracking code in the onPress event for that movieClip, as you can see in the source file provided.

_root.ball.onPress = function () {
	startDrag(this);
	this.dragging = true;
	trackGA("ball/"+this.ballNum+"/pressed/");
}

thanks for reading</description>
		<content:encoded><![CDATA[<p>@Avangelist - This is a tutorial to track an event (something that happens in Flash) in Google Analytics as a pageview.</p>
<p>This is a simple example about how to implement this idea. It can be pushed much further. This example shows how to track events with this ball (user interaction and not) in Google analytics. If we wanted to havea button going to another page it may be better to just put the analytics code on that page.</p>
<p>You have a swf with buttons, which click through for pages? are these &#8220;pages&#8221; separate html pages or frames in your flash?<br />
You want to track the click of the button? That would be the exact way I track clicking this ball in the example. I&#8217;m placing the tracking code in the onPress event for that movieClip, as you can see in the source file provided.</p>
<p>_root.ball.onPress = function () {<br />
	startDrag(this);<br />
	this.dragging = true;<br />
	trackGA(&#8221;ball/&#8221;+this.ballNum+&#8221;/pressed/&#8221;);<br />
}</p>
<p>thanks for reading</p>
]]></content:encoded>
	</item>
</channel>
</rss>
