<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: New Plugin Function To Populate Hierarchy From URL in Omniture SiteCatalyst</title>
	<atom:link href="http://webanalyticsland.com/sitecatalyst-implementation/new-plugin-function-to-populate-hierarchy-from-url-in-omniture-sitecatalyst/feed/" rel="self" type="application/rss+xml" />
	<link>http://webanalyticsland.com/sitecatalyst-implementation/new-plugin-function-to-populate-hierarchy-from-url-in-omniture-sitecatalyst/</link>
	<description>Omniture SiteCatalyst Implementation Optimization.</description>
	<lastBuildDate>Fri, 20 Aug 2010 16:55:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Rudi Shumpert</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/new-plugin-function-to-populate-hierarchy-from-url-in-omniture-sitecatalyst/comment-page-1/#comment-88</link>
		<dc:creator>Rudi Shumpert</dc:creator>
		<pubDate>Fri, 04 Sep 2009 15:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://webanalyticsland.com/?p=105#comment-88</guid>
		<description>Great Post. It got me thinking how to do it on our site.

http://tr.im/xSCz</description>
		<content:encoded><![CDATA[<p>Great Post. It got me thinking how to do it on our site.</p>
<p><a href="http://tr.im/xSCz" rel="nofollow">http://tr.im/xSCz</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rudi Shumpert : Code By Numbers &#187; Hierarchy Data In Omniture</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/new-plugin-function-to-populate-hierarchy-from-url-in-omniture-sitecatalyst/comment-page-1/#comment-87</link>
		<dc:creator>Rudi Shumpert : Code By Numbers &#187; Hierarchy Data In Omniture</dc:creator>
		<pubDate>Fri, 04 Sep 2009 14:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://webanalyticsland.com/?p=105#comment-87</guid>
		<description>[...] was reading a post on WebAnalyticsLand about a SiteCatalyst plugin to populate the s.hierN variables from the URL, and it got the gears turning. I wonder if I could [...]</description>
		<content:encoded><![CDATA[<p>[...] was reading a post on WebAnalyticsLand about a SiteCatalyst plugin to populate the s.hierN variables from the URL, and it got the gears turning. I wonder if I could [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VaBeachKevin</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/new-plugin-function-to-populate-hierarchy-from-url-in-omniture-sitecatalyst/comment-page-1/#comment-20</link>
		<dc:creator>VaBeachKevin</dc:creator>
		<pubDate>Fri, 03 Apr 2009 15:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://webanalyticsland.com/?p=105#comment-20</guid>
		<description>Thanks for the input! My code is quite bulky, and am 100% positive that it can be improved. This post was done to actually show what a little creative coding can do, the other just to get people aware that they are not limited by the Plugins handed down from Omniture and hopefully get the creative juices flowing for others out there.

I had this set at 5 levels (home plus 4 folders) since you have to set the hierarchy depth when setting it up with Client Care. If this collects 8 levels deep, SiteCatalyst will only report 5 since that&#039;s how I had them enable it for my specific case. In general SEO terms, i don;t think most sites should be going that deep in folders in the first place, but that debate is for another day. I was also planning on going back and adding in some kind of &lt;strong&gt;location.href.substring(location.href.lastIndexOf(&#039;/&#039;)+1);&lt;/strong&gt; type code to pull out that last level if it is not a folder, but you beat me to it.

Again I appreciate the feedback. Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for the input! My code is quite bulky, and am 100% positive that it can be improved. This post was done to actually show what a little creative coding can do, the other just to get people aware that they are not limited by the Plugins handed down from Omniture and hopefully get the creative juices flowing for others out there.</p>
<p>I had this set at 5 levels (home plus 4 folders) since you have to set the hierarchy depth when setting it up with Client Care. If this collects 8 levels deep, SiteCatalyst will only report 5 since that&#8217;s how I had them enable it for my specific case. In general SEO terms, i don;t think most sites should be going that deep in folders in the first place, but that debate is for another day. I was also planning on going back and adding in some kind of <strong>location.href.substring(location.href.lastIndexOf(&#8216;/&#8217;)+1);</strong> type code to pull out that last level if it is not a folder, but you beat me to it.</p>
<p>Again I appreciate the feedback. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephane Hamel</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/new-plugin-function-to-populate-hierarchy-from-url-in-omniture-sitecatalyst/comment-page-1/#comment-19</link>
		<dc:creator>Stephane Hamel</dc:creator>
		<pubDate>Fri, 03 Apr 2009 14:44:56 +0000</pubDate>
		<guid isPermaLink="false">http://webanalyticsland.com/?p=105#comment-19</guid>
		<description>Your script actually has some limitations and isn&#039;t optimized:
- what if the hierarchy as more than 4 levels?
- what if the URL ends up with /page.htm?

I&#039;ve been doing JavaScript coding for years, here&#039;s a different version of it:

function getHier(s) {
   if(!s)
      s = window.location.pathname;
   if(/\.[^\/]+$/.test(s))
      s = s.substring(0,s.lastIndexOf(&quot;/&quot;));
   s = &quot;home&quot;+s.toLowerCase().replace(/\//g,&quot;&#124;&quot;);
   return s.replace(/\&#124;$/,&quot;&quot;);
}

To test it:
alert(getHier());
alert(getHier(&quot;/page.htm&quot;));
alert(getHier(&quot;/a/b/c/d/&quot;));
alert(getHier(&quot;/a/b/c/d/page.htm&quot;));
alert(getHier(&quot;/a/b/c/d/page.htm#hash&quot;));
alert(getHier(&quot;/a/b/c/d/page.htm?a=1&amp;b=2&quot;));

Cheers,
Stéphane Hamel
http://immeria.net</description>
		<content:encoded><![CDATA[<p>Your script actually has some limitations and isn&#8217;t optimized:<br />
- what if the hierarchy as more than 4 levels?<br />
- what if the URL ends up with /page.htm?</p>
<p>I&#8217;ve been doing JavaScript coding for years, here&#8217;s a different version of it:</p>
<p>function getHier(s) {<br />
   if(!s)<br />
      s = window.location.pathname;<br />
   if(/\.[^\/]+$/.test(s))<br />
      s = s.substring(0,s.lastIndexOf(&#8220;/&#8221;));<br />
   s = &#8220;home&#8221;+s.toLowerCase().replace(/\//g,&#8221;|&#8221;);<br />
   return s.replace(/\|$/,&#8221;");<br />
}</p>
<p>To test it:<br />
alert(getHier());<br />
alert(getHier(&#8220;/page.htm&#8221;));<br />
alert(getHier(&#8220;/a/b/c/d/&#8221;));<br />
alert(getHier(&#8220;/a/b/c/d/page.htm&#8221;));<br />
alert(getHier(&#8220;/a/b/c/d/page.htm#hash&#8221;));<br />
alert(getHier(&#8220;/a/b/c/d/page.htm?a=1&amp;b=2&#8243;));</p>
<p>Cheers,<br />
Stéphane Hamel<br />
<a href="http://immeria.net" rel="nofollow">http://immeria.net</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pull Folders From The URL To Populate Channel and Hierarchy From Inside The S_Code File &#124; Web Analytics Land</title>
		<link>http://webanalyticsland.com/sitecatalyst-implementation/new-plugin-function-to-populate-hierarchy-from-url-in-omniture-sitecatalyst/comment-page-1/#comment-18</link>
		<dc:creator>Pull Folders From The URL To Populate Channel and Hierarchy From Inside The S_Code File &#124; Web Analytics Land</dc:creator>
		<pubDate>Fri, 03 Apr 2009 12:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://webanalyticsland.com/?p=105#comment-18</guid>
		<description>[...] I have a better way of doing this. Please check out the post New Plugin Function to Populate Hierarchy From URL in Omniture SiteCatalyst. You can still glance at what I have here, but that new post is really much [...]</description>
		<content:encoded><![CDATA[<p>[...] I have a better way of doing this. Please check out the post New Plugin Function to Populate Hierarchy From URL in Omniture SiteCatalyst. You can still glance at what I have here, but that new post is really much [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
