<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Analytics Land &#187; SiteCatalyst Implementation</title>
	<atom:link href="http://webanalyticsland.com/sitecatalyst-implementation/category/sitecatalyst-implementation/feed/" rel="self" type="application/rss+xml" />
	<link>http://webanalyticsland.com</link>
	<description>Omniture SiteCatalyst Implementation Optimization.</description>
	<lastBuildDate>Sat, 19 Nov 2011 02:24:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Capture Mobile Device Screen Orientation In SiteCatalyst</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/capture-mobile-device-screen-orientation-in-sitecatalyst/</link>
		<comments>http://webanalyticsland.com/sitecatalyst-implementation/capture-mobile-device-screen-orientation-in-sitecatalyst/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 02:24:17 +0000</pubDate>
		<dc:creator>VaBeachKevin</dc:creator>
				<category><![CDATA[SiteCatalyst Implementation]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[implementation]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[omniture]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[reports]]></category>
		<category><![CDATA[sitecatalyst]]></category>

		<guid isPermaLink="false">http://webanalyticsland.com/?p=647</guid>
		<description><![CDATA[Recently I was speaking to someone who was in the process of creating an tablet experience for their visitors. At one point they asked the question &#8220;of my iPad visitors, how do I find out in what format do they view my site the most in, landscape or portrait?&#8221;. I started going through all of [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was speaking to someone who was in the process of creating an tablet experience for their visitors. At one point they asked the question &#8220;of my iPad visitors, how do I find out in what format do they view my site the most in, landscape or portrait?&#8221;. I started going through all of the reports in SiteCatalyst and tried to find the answer, but that information just was not available. So I decided to whip a little bit of code that would figure this out for us. I call this the screenOrientation plug-in.  </p>
<p>Basically what this will do is it will check to see in what position the mobile visitor is viewing the site in, whether they are viewing the site in a portrait or a landscape view when the page loads, and capture that value into a SiteCatalyst variable. </p>
<p>To implement this plug-in you first need to take this code, and add it to your s_code file near the rest of your plug-ins.</p>
<pre class="brush: jscript">
function screenOrientation(){switch(window.orientation){case 0:case 180:return(&quot;Portrait&quot;);break;case 90:case -90:return(&quot;Landscape&quot;);}window.scroll(0,0)}
</pre>
<p>Next in the do_plugins section of the s_code file, add the call to the plug-in to what ever SiteCatalyst variable you want this data captured in. In the example here you can see I am capturing it in s.prop1</p>
<pre class="brush: jscript">
s.prop1=screenOrientation();
</pre>
<p>Thats all it takes. Once the code is implemented, if the device does not have an orientation value the variable will not capture anything, but if the visitor is on a mobile device with an orientation value, the value of Landscape or Portrait will be captured on each page load. You will end up with a report that looks something like this:<br />
<br />
<img alt="Mobile Screen Orientation Report" src="http://webanalyticsland.com/images/so2.jpg" title="Mobile Screen Orientation Report" class="alignnone" width="796" height="406" /><br />
<br />
To make it easier to access the report I also moved it into the Mobile report menu by using the customize menus option in the admin console of SiteCatalyst.<br />
<br />
<img alt="SiteCatalyst Mobile Reports" src="http://webanalyticsland.com/images/so11.png" title="SiteCatalyst Mobile Reports" class="alignnone" width="485" height="354" /></p>
<p>enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://webanalyticsland.com/sitecatalyst-implementation/capture-mobile-device-screen-orientation-in-sitecatalyst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Link Tracking in Omniture using jQuery</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/custom-link-tracking-in-omniture-using-jquery/</link>
		<comments>http://webanalyticsland.com/sitecatalyst-implementation/custom-link-tracking-in-omniture-using-jquery/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 03:32:16 +0000</pubDate>
		<dc:creator>VaBeachKevin</dc:creator>
				<category><![CDATA[SiteCatalyst Implementation]]></category>
		<category><![CDATA[implementation]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[keystone solutions]]></category>
		<category><![CDATA[omniture]]></category>
		<category><![CDATA[sitecatalyst]]></category>
		<category><![CDATA[web analytics]]></category>

		<guid isPermaLink="false">http://webanalyticsland.com/?p=642</guid>
		<description><![CDATA[One of the most common things I get asked to track are specific links on the website. Typically to do that I would use a custom link tracking function. This typically involves adding a large chunk of JavaScript code to each link, or adding a function to your s_code file and then calling that function [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most common things I get asked to track are specific links on the website. Typically to do that I would use a custom link tracking function. This typically involves adding a large chunk of JavaScript code to each link, or adding a function to your s_code file and then calling that function using an onClick function added directly to the link. That methodology works fine, and I’ve been doing it forever. But that means working with IT to add more code to your pages, something I want to try to avoid as much as possible. So how can we make the implementation of our link tracking quicker and use less code? If you haven’t figured it out by now, we’re going to use some jQuery.</p>
<p>For more information how to do this, please read the full article <a href="http://www.keystonesolutions.com/community/2011/07/731/" title="Custom Link Tracking in Omniture using jQuery" target="_blank">Custom Link Tracking in Omniture using jQuery</a>.</p>
<p>For more information on website optimization solutions, please visit <a href="http://keystonesolutions.com/" title="Keystone Solutions" target="_blank">Keystone Solutions</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://webanalyticsland.com/sitecatalyst-implementation/custom-link-tracking-in-omniture-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Setup contextData Variables in SiteCatalyst 15</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/contextdata-variables-in-sitecatalyst-15/</link>
		<comments>http://webanalyticsland.com/sitecatalyst-implementation/contextdata-variables-in-sitecatalyst-15/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 11:13:08 +0000</pubDate>
		<dc:creator>VaBeachKevin</dc:creator>
				<category><![CDATA[SiteCatalyst Implementation]]></category>
		<category><![CDATA[15]]></category>
		<category><![CDATA[contextdata]]></category>
		<category><![CDATA[implementation]]></category>
		<category><![CDATA[processing rules]]></category>
		<category><![CDATA[sitecatalyst]]></category>

		<guid isPermaLink="false">http://webanalyticsland.com/?p=635</guid>
		<description><![CDATA[

Today I show you how to setup and use contextData variables with processing rules in SiteCatalyst 15.
Enjoy.
]]></description>
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" width="560" height="345" src="http://www.youtube.com/embed/n2zFkF7A4tw?hd=1" frameborder="0" allowfullscreen></iframe><br />
<br />
Today I show you how to setup and use contextData variables with processing rules in SiteCatalyst 15.</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://webanalyticsland.com/sitecatalyst-implementation/contextdata-variables-in-sitecatalyst-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Processing Rules in SiteCatalyst 15</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/sitecatalyst-15-processing-rules/</link>
		<comments>http://webanalyticsland.com/sitecatalyst-implementation/sitecatalyst-15-processing-rules/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 18:05:27 +0000</pubDate>
		<dc:creator>VaBeachKevin</dc:creator>
				<category><![CDATA[SiteCatalyst Implementation]]></category>
		<category><![CDATA[15]]></category>
		<category><![CDATA[implementation]]></category>
		<category><![CDATA[omniture]]></category>
		<category><![CDATA[processing rules]]></category>
		<category><![CDATA[sitecatalyst]]></category>

		<guid isPermaLink="false">http://webanalyticsland.com/?p=630</guid>
		<description><![CDATA[

Here is a quick look at what can be done with and how to set up processing rules in SiteCatalyst 15.
Enjoy.
]]></description>
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" width="560" height="345" src="http://www.youtube.com/embed/vJEPvUiZqqo?hd=1" frameborder="0" allowfullscreen></iframe><br />
<br />
Here is a quick look at what can be done with and how to set up processing rules in SiteCatalyst 15.</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://webanalyticsland.com/sitecatalyst-implementation/sitecatalyst-15-processing-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Capture A Query String Parameter From A Referring URL In SiteCatalyst</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/capture-query-string-parameter-from-referring-url/</link>
		<comments>http://webanalyticsland.com/sitecatalyst-implementation/capture-query-string-parameter-from-referring-url/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 02:13:42 +0000</pubDate>
		<dc:creator>VaBeachKevin</dc:creator>
				<category><![CDATA[SiteCatalyst Implementation]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[implementation]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[sitecatalyst]]></category>
		<category><![CDATA[s_code.js]]></category>
		<category><![CDATA[tracking]]></category>

		<guid isPermaLink="false">http://webanalyticsland.com/?p=617</guid>
		<description><![CDATA[Recently someone had asked the question, how do I capture a query string parameter that&#8217;s on referring URL? We all know how to grab a query string parameter from the current page URL by using the getQueryParam SiteCatalyst plug-in, but most people don&#8217;t know that plug-in can be used to get a query string parameter [...]]]></description>
			<content:encoded><![CDATA[<p>Recently someone had asked the question, <em>how do I capture a query string parameter that&#8217;s on referring URL?</em> We all know how to grab a query string parameter from the current page URL by using the <a href="http://webanalyticsland.com/sitecatalyst-plugins/getqueryparam/">getQueryParam SiteCatalyst plug-in</a>, but most people don&#8217;t know that plug-in can be used to get a query string parameter from the referring URL as well. I once had a real unique implementation that was not using that plug-in and needed to capture that value. I wanted to keep the implementation really light so I decided to give it a try using a smaller bit of code. I broke out a little JavaScript magic to see if I could make it happen simpler than using that plug-in. Turns out it&#8217;s not too difficult to accomplish, in fact I got it down to just a single line of code.<br />
</p>
<pre class="brush: jscript">
function getRefQueryParam(a){a=a.replace(/[\[]/,&quot;\\[&quot;).replace(/[\]]/,&quot;\\]&quot;);a=RegExp(&quot;[\\?&amp;]&quot;+a+&quot;=([^&amp;#]*)&quot;).exec(document.referrer);return a==null?&quot;&quot;:a[1]};
</pre>
<p>
Its a little function called getRefQueryParam. To use it just place that code in your s_code file, and then call it with the name of the query string parameter you want to capture. In this example I want to capture the value of the parameter forumID= from the referring URL and record it in s.prop1.<br />
</p>
<pre class="brush: jscript">
s.prop1=getRefQueryParam(&#039;forumID&#039;);
</pre>
<p>
With a little JavaScript goodness it is an easy value to capture.<br />
<br />
Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://webanalyticsland.com/sitecatalyst-implementation/capture-query-string-parameter-from-referring-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SiteCatalyst 15 UI Updates</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/sitecatalyst-15-ui-updates/</link>
		<comments>http://webanalyticsland.com/sitecatalyst-implementation/sitecatalyst-15-ui-updates/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 14:09:34 +0000</pubDate>
		<dc:creator>VaBeachKevin</dc:creator>
				<category><![CDATA[SiteCatalyst Implementation]]></category>
		<category><![CDATA[15]]></category>
		<category><![CDATA[enhancements]]></category>
		<category><![CDATA[sitecatalyst]]></category>
		<category><![CDATA[web analytics]]></category>

		<guid isPermaLink="false">http://webanalyticsland.com/?p=611</guid>
		<description><![CDATA[

At the Omniture Summit earlier this month, SiteCatalyst 15 was announced. There has been a lot said about the new tools it will offer but not much about the overall UI appearance update. Here is a quick look showing some of the changes you will see in the UI of SiteCatalyst 15.
Enjoy.
]]></description>
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" width="560" height="349" src="http://www.youtube.com/embed/co_Z_e8LZds" frameborder="0" allowfullscreen></iframe><br />
<br />
At the Omniture Summit earlier this month, SiteCatalyst 15 was announced. There has been a lot said about the new tools it will offer but not much about the overall UI appearance update. Here is a quick look showing some of the changes you will see in the UI of SiteCatalyst 15.</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://webanalyticsland.com/sitecatalyst-implementation/sitecatalyst-15-ui-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scatter Plot Graph Or Bubble Graph Use in SiteCatalyst</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/scatter-plot-graph-or-bubble-graph-use-in-sitecatalyst/</link>
		<comments>http://webanalyticsland.com/sitecatalyst-implementation/scatter-plot-graph-or-bubble-graph-use-in-sitecatalyst/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 11:48:46 +0000</pubDate>
		<dc:creator>VaBeachKevin</dc:creator>
				<category><![CDATA[SiteCatalyst Implementation]]></category>

		<guid isPermaLink="false">http://webanalyticsland.com/?p=607</guid>
		<description><![CDATA[

Recently someone asked me when was the best time to use the Scatter Plot graph type and the Bubble graph type in SiteCatalyst reports.
Enjoy.
]]></description>
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" width="560" height="349" src="http://www.youtube.com/embed/vSafJzdB-3g?hd=1" frameborder="0" allowfullscreen></iframe><br />
<br />
Recently someone asked me when was the best time to use the Scatter Plot graph type and the Bubble graph type in SiteCatalyst reports.</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://webanalyticsland.com/sitecatalyst-implementation/scatter-plot-graph-or-bubble-graph-use-in-sitecatalyst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video Introduction To SiteCatalyst Target Reports</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/sitecatalyst-target-reports/</link>
		<comments>http://webanalyticsland.com/sitecatalyst-implementation/sitecatalyst-target-reports/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 11:00:44 +0000</pubDate>
		<dc:creator>VaBeachKevin</dc:creator>
				<category><![CDATA[SiteCatalyst Implementation]]></category>
		<category><![CDATA[omniture]]></category>
		<category><![CDATA[reports]]></category>
		<category><![CDATA[sitecatalyst]]></category>
		<category><![CDATA[targets]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[web analytics]]></category>

		<guid isPermaLink="false">http://webanalyticsland.com/?p=599</guid>
		<description><![CDATA[

The SiteCatalyst Target report is one of my favorite reports that I don&#8217;t see used enough. THis video gives you a brief introduction to the report, and walks you through setting one up, and how to view the results.
Enjoy.
]]></description>
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="560" height="345" src="http://www.youtube.com/embed/Qs_W-LJB5MM?hd=1" frameborder="0" allowFullScreen></iframe><br />
<br />
The SiteCatalyst Target report is one of my favorite reports that I don&#8217;t see used enough. THis video gives you a brief introduction to the report, and walks you through setting one up, and how to view the results.</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://webanalyticsland.com/sitecatalyst-implementation/sitecatalyst-target-reports/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bounce Rate Funnels &#8211; Action Depth SiteCatalyst Plug-In</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/bounce-rate-funnels-action-depth-sitecatalyst-plug-in/</link>
		<comments>http://webanalyticsland.com/sitecatalyst-implementation/bounce-rate-funnels-action-depth-sitecatalyst-plug-in/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 00:08:16 +0000</pubDate>
		<dc:creator>VaBeachKevin</dc:creator>
				<category><![CDATA[SiteCatalyst Implementation]]></category>

		<guid isPermaLink="false">http://webanalyticsland.com/?p=573</guid>
		<description><![CDATA[Bounce Rates. For those of you who are unaware of what they are,  bounce rate is essentially the percentage of single page visits, divided by your total visits. This metric can be pretty useful to figure out what pages of your site that your visitors enter on and decide not to venture any deeper [...]]]></description>
			<content:encoded><![CDATA[<p>Bounce Rates. For those of you who are unaware of what they are,  bounce rate is essentially the percentage of single page visits, divided by your total visits. This metric can be pretty useful to figure out what pages of your site that your visitors enter on and decide not to venture any deeper into your site. Basically the visitor came to your site and the page they entered on did not entice them to view additional pages of your site so they left. This is obviously not what we want. We need our visitors to come to our sites and complete our desired action. This is where I run into a problem with the Bounce Rate metric. Lets say for example you have a lead generation site, which contains a form on the landing page which uses ajax or some other type of technology to process the form submission. That site would have a visitor enter, fill out the form (which is your desired action) and then leave the site. This would show up as a bounced visit since a second page view was not recorded. What can we do to record this action as a successful visit and not have it end up being considered as just another bounce?<br />
<br />
One thing you could do would be to use the <a href="http://webanalyticsland.com/sitecatalyst-plugins/getvisitstart/">getVisitStart plug-in</a>. With this plug-in you could set an event on the first page of the visit, and then using a conversion funnel you can see how many visits entered on your specified landing page and then completed your conversion event.<br />
<br />
<img src="http://webanalyticsland.com/images/gad_1.png" alt="" /><br />
<br />
Pretty simple stuff so far. But what if I wanted to now know how many of those visits ventured on to view additional pages of my site, and how many left right after completing my conversion event? For this I would want to set a second different success event on the second page view of the site. For this we can use the getActionDepth plug-in.<br />
<br />
What this plug-in will do is set a success event (or any SiteCatalyst variable you want) onto any page of the visit. In this case we want to set a success event on the second page view of the site. Using the Action Depth plug-in we can set individual events on only the first page view and the second page view of the visit. Now using the same conversion funnel we can see how many visits entered the site, completed our conversion action, and then stayed to view a second page of the site.<br />
<br />
<img src="http://webanalyticsland.com/images/gad_2.png" alt="" /><br />
<br />
What if your site does not have an ajax type form conversion action and you just want to use the custom events funnel as a cool way to display how many bounces your site had? That can also be easily done.<br />
<br />
<img src="http://webanalyticsland.com/images/gad_3.png" alt="" /><br />
<br />
By just including the event that fired on page 1 of the visit and the event that fired on the second page view of the visit we now have a nice graphical representation of how many of our visits left after viewing a single page and how many decided to move on to view additional pages of the site.<br />
<br />
What if for your site only viewing 2 pages was not good enough? You need to see what percentage of your visits see at least three pages. The Action Depth plug-in can take care of that as well.<br />
<br />
<img src="http://webanalyticsland.com/images/gad_4.png" alt="" /><br />
<br />
Now if you have spent more than couple minutes using SiteCatalyst you could probably be saying to yourself &#8220;I can find this information out already by using the Path Length report&#8221;. Yes that report will tell you what percentage of your visits saw any number of pages, but have you tried to add that report to a dashboard? It&#8217;s not pretty. This way you can easily show the exact information you need in a very easy to read format.<br />
<br />
Let&#8217;s take a look at what the plug-in code looks like If we want to set an event on first page view of the visit, and another one on the second page view of the visit. First add this line in the top of your s_code file, in the config section.</p>
<pre class="brush: jscript">
s.ActionDepthTest=true;
</pre>
<p>Next this call to the plug-in should be placed in your s_code file in the s_doPlugins section.</p>
<pre class="brush: jscript">
if(s.ActionDepthTest){
	s.pdvalue=s.getActionDepth(&quot;s_depth&quot;);
	if(s.pdvalue == 1) {
		s.events=s.apl(s.events,&#039;event1&#039;,&#039;,&#039;,1)
	}
	if(s.pdvalue == 2) {
		s.events=s.apl(s.events,&#039;event2&#039;,&#039;,&#039;,1)
	}
}
s.ActionDepthTest=false;
</pre>
<p>And here is the actual plug-in that should be placed after the s_doPlugins section, along with your other plug-ins.</p>
<pre class="brush: jscript">
/*
 * Plugin: getActionDepth v1.0
 */
s.getActionDepth=new Function(&quot;c&quot;,&quot;&quot;
+ &quot;var s=this,v=1,t=new Date;t.setTime(t.getTime()+1800000);&quot;
+ &quot;if(!s.c_r(c)){v=1}if(s.c_r(c)){v=s.c_r(c);v++}&quot;
+ &quot;if(!s.c_w(c,v,t)){s.c_w(c,v,0)}return v;&quot;);
</pre>
<p>
But there is one more thing (sorry I was feeling very Steve Jobs for a moment). Actually I have two more things but I couldn&#8217;t pass up on a good Steve Jobs reference. Let&#8217;s say you also need to set an additional event and an eVar on the 6th page view of the site, and only on the 6th page view. That can easily be done as well by just changing somethings around in the plug-in code. By looking at the call to the plug-in it should be pretty easy to see what&#8217;s going on. When the specific page view of the visit is reached, then the actions that are attached will occur.  </p>
<pre class="brush: jscript">
s.ActionDepthTest=true;
if(s.ActionDepthTest){
	s.pdvalue=s.getActionDepth(&quot;s_depth&quot;);
	if(s.pdvalue == 1) {
		s.events=s.apl(s.events,&#039;event1&#039;,&#039;,&#039;,1)
	}
	if(s.pdvalue == 2) {
		s.events=s.apl(s.events,&#039;event2&#039;,&#039;,&#039;,1)
	}
	if(s.pdvalue == 6) {
		s.events=s.apl(s.events,&#039;event3&#039;,&#039;,&#039;,1)
	        s.eVar=&quot;This is the sixth page view&quot;;
        }
}
s.ActionDepthTest=false;
</pre>
<p>Now how about you want to know how many page views deep do your visitors go when they complete your conversion action. A little change to the plug-in code and we can capture that as well. What we do here is just capture what the page number of the visit is on each page view in an eVar, then we can just add in our conversion event to that report and there we go. Then we can see directly in our optimization efforts if we are helping our visitors quickly get to our conversion event. Here is the code to capture the page number of each page of the visit in an eVar. </p>
<pre class="brush: jscript">
if(s.ActionDepthTest){
	s.pdvalue=s.getActionDepth(&quot;s_depth&quot;);
	if(s.pdvalue) {
		s.eVar1=s.pdvalue;
	}
}
s.ActionDepthTest=false;
</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://webanalyticsland.com/sitecatalyst-implementation/bounce-rate-funnels-action-depth-sitecatalyst-plug-in/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Stop Google Preview From Being Counted In SiteCatalyst</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/how-to-stop-google-preview-from-being-counted-in-sitecatalyst/</link>
		<comments>http://webanalyticsland.com/sitecatalyst-implementation/how-to-stop-google-preview-from-being-counted-in-sitecatalyst/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 04:23:40 +0000</pubDate>
		<dc:creator>VaBeachKevin</dc:creator>
				<category><![CDATA[SiteCatalyst Implementation]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[implementation]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[omniture]]></category>
		<category><![CDATA[reports]]></category>
		<category><![CDATA[sitecatalyst]]></category>
		<category><![CDATA[s_code.js]]></category>
		<category><![CDATA[tracking]]></category>

		<guid isPermaLink="false">http://webanalyticsland.com/?p=451</guid>
		<description><![CDATA[Google Instant Preview, designed to show you a visual preview of your search results, rolled out in early November 2010. You now have the ability to click a small magnifying glass icon next to each search result to get a snapshot of what the page looks like.


Seems like a pretty helpful feature, but how do [...]]]></description>
			<content:encoded><![CDATA[<p>Google Instant Preview, designed to show you a visual preview of your search results, rolled out in early November 2010. You now have the ability to click a small magnifying glass icon next to each search result to get a snapshot of what the page looks like.<br />
<img src="http://webanalyticsland.com/images/google-preview.jpg" alt="Google Instant Preview" /><br />
<br />
Seems like a pretty helpful feature, but how do they do it? Well it would appear that Google has a new spider that crawls the web and takes snapshots of each page in its results. In order for them to get an accurate look at what the page looks like, this new bot needs to able to execute JavaScript. Here is the problem. Since it is executing JavaScript that means it is also firing off the SiteCatalyst code and is being counted as another visitor and is registering page views.<br />
<br />
How can you tell if this new Google Web Preview bot hit your site? If you are capturing User Agent you can see it show up in that report:<br />
<img src="http://webanalyticsland.com/images/user-agent-report.jpg" alt="User Agent Report" /><br />
<br />
<em><strong>NOTE: If you are not capturing user agent and would like to, a super simple way would be to use the <a href="http://blogs.omniture.com/2009/11/24/trimming-the-fat-with-dynamic-variables/">SiteCatalyst Dynamic Variable</a> functionality and include s.eVarX=&#8221;D=User-Agent&#8221;; in your s_code.js file. Just insert the number of the eVar you would like to use (a s.prop would work too) and you are all set.</strong></em><br />
<br />
Another way to see if you are being affected with spider traffic in your report suite from the Google Preview Bot would be to check out a Browser report (Visitor Profile > Technology > Browsers) and filter it to only show visitors using Safari 3.1 and then trend it.<br />
<img src="http://webanalyticsland.com/images/browser-report.jpg" alt="Browser Report" /><br />
We can see that this report suite has recorded about an additional 15,000 visitors over the last week that is just attributed to Safari 3.1. Checking the User Agent we saw earlier, the Google Web Preview bot is registering itself as Safari 3.1.<br />
<br />
Now that we can see that the Google Web Preview bot is having an effect on our traffic how do we get rid of it? We could block that bot in our robots.txt file, but I like having that additional functionality available for my visitors in the Google search results. I just don&#8217;t want it to execute my SiteCatalyst code. Well here is how to do it.<br />
<br />
I call this my <strong>bot detection code</strong> (real catchy title, right?). I currently have it just set to look for the Google Web Preview bot, but it could easily be modified to exclude other bots that can execute JavaScript. Here is how you implement it. In your s_code file, at the top you will have a s_account variable that contains your report suite id. It will look something like this:</p>
<pre class="brush: jscript">
var s_account=&quot;dead&quot;
</pre>
<p>To implement the bot detection code you will want to change that line to include the function call. It should look like this:</p>
<pre class="brush: jscript">
var s_account=botCheck(&quot;dead&quot;)
</pre>
<p>Pretty simple so far, right? We just added the function call and included our report suite id in it. Next we have a block of code that needs to be added to the plug-ins section of the s_code file:</p>
<pre class="brush: jscript">
function botCheck(b){var c=navigator.userAgent.toLowerCase(),a=&quot;&quot;;a+=c.indexOf(&quot;google web preview&quot;)!=-1?&quot;&quot;:b;return a};
</pre>
<p>And that&#8217;s all there is to it. So how does it work you ask? What it does is it removes your report suite id if it is the Google Web Preview bot that is accessing the page. The SiteCatalyst code will still fire off, but it will not include the report suite id so it will be discarded by SiteCatalyst and it will not affect your metrics.<br />
<br />
Want to see it in action? I thought you&#8217;d never ask! Check out the page <a href="http://webanalyticsland.com/test.php">http://webanalyticsland.com/test.php</a>. On this page I have a basic SiteCatalyst implementation, one line of code that displays your user agent, and then I print the results of the SiteCatalyst debugger right to the screen. Opening this page in a standard Firefox browser we can see that the SiteCatalyst code has fired off properly, it has displayed the correct user agent and the report suite id is contained within the image request string.<br />
<img src="http://webanalyticsland.com/images/testing1.jpg" alt="Test 1" target="_new" /><br />
So far so good. Using the <a href="https://addons.mozilla.org/en-US/firefox/addon/59/">User Agent switcher</a> plug-in for Firefox, we can switch out user agent to the one that we found in the SiteCatalyst report to mimic the Google Web Preview bot.<br />
<img src="http://webanalyticsland.com/images/testing2.jpg" alt="Test 2" /><br />
We can now see that when we use that bot&#8217;s user agent string, the report suite id is missing from the image request call. Any action that happens now will not be recorded in my report suite, and when SiteCatalyst receives this request it will be discarded. I&#8217;ve had this running for a few days now and have not found any issues, but since this is a pretty new chunk of code be sure to test it out before using it on your production site.<br />
<br />
Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://webanalyticsland.com/sitecatalyst-implementation/how-to-stop-google-preview-from-being-counted-in-sitecatalyst/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

