<?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>Dan Grossman &#187; web stats</title>
	<atom:link href="http://www.dangrossman.info/tag/web-stats/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dangrossman.info</link>
	<description></description>
	<lastBuildDate>Thu, 19 Aug 2010 20:19:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>W3Counter pWidget Rev 2</title>
		<link>http://www.dangrossman.info/2007/10/19/w3counter-pwidget-rev-2/</link>
		<comments>http://www.dangrossman.info/2007/10/19/w3counter-pwidget-rev-2/#comments</comments>
		<pubDate>Fri, 19 Oct 2007 06:22:29 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[W3Counter]]></category>
		<category><![CDATA[actual site]]></category>
		<category><![CDATA[web stats]]></category>
		<category><![CDATA[X Library]]></category>

		<guid isPermaLink="false">http://www.dangrossman.info/2007/10/19/w3counter-pwidget-rev-2/</guid>
		<description><![CDATA[I just wrapped up testing the second revision W3Counter pWidget, the overlay that brings web stats right to your webpage, including W3Counter&#8217;s color-coded click overlay. It puts no extra burden on the webpage except a simple key listener until it&#8217;s activated by the user, loads data modularly on demand, and is completely cross-browser compatible (dragging [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.dangrossman.info/photos/w3c_dev/pwidget.png" alt="pWidget: Page Stats Widget" style="border: 1px solid #000; float: left; margin: 0 10px 10px 0" /> I just wrapped up testing the second revision W3Counter pWidget, the overlay that brings web stats right to your webpage, including W3Counter&#8217;s color-coded click overlay. It puts no extra burden on the webpage except a simple key listener until it&#8217;s activated by the user, loads data modularly on demand, and is completely cross-browser compatible (dragging and transparency thanks to the awesome <a href="http://www.cross-browser.com/">X Library</a>). </p>
<p>It works flawlessly in IE6 and 7, Firefox, Opera and Safari. It also alleviates some issues the click overlay has within W3Counter&#8217;s normal interface due to having to serve the webpage by proxy through the W3Counter domain. Since this widget is running on the actual site, it doesn&#8217;t have the cross-domain scripting restrictions browsers impose on the proxied version, so it can show the overlay on an even broader set of sites. <span id="more-183"></span></p>
<p>The appearance has also been tweaked to be easier to read, and the &#8220;Live View&#8221; tab given the feature upgrades the same report in W3Counter got, including browser and country icons, and showing a visitor&#8217;s label instead of IP address if it&#8217;s known.</p>
<p>Another step closer to being able to push this out to the live site. You can see it in action on any page of this blog by holding Shift+W for 3 seconds (try the <a href="http://www.dangrossman.info">homepage</a>, as this post won&#8217;t have data since it&#8217;s a brand new page). </p>
<p>By the way, can anyone think of a better way to activate it that&#8217;s unlikely to interfere with normal webpage usage? All the convenient keyboard combos seem to be taken already in some browser or popular extension.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dangrossman.info/2007/10/19/w3counter-pwidget-rev-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bringing the web stats to your site</title>
		<link>http://www.dangrossman.info/2007/10/14/bringing-the-web-stats-to-your-site/</link>
		<comments>http://www.dangrossman.info/2007/10/14/bringing-the-web-stats-to-your-site/#comments</comments>
		<pubDate>Sun, 14 Oct 2007 07:10:41 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[California]]></category>
		<category><![CDATA[Central Intelligence Agency]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[web stats]]></category>

		<guid isPermaLink="false">http://www.dangrossman.info/2007/10/14/bringing-the-web-stats-to-your-site/</guid>
		<description><![CDATA[I&#8217;m still working on the widgets for W3Counter. I&#8217;ve have too many other things that need attention recently to bring anything to finished form, but at least I have 6 of the 8 planned widgets working and in testing. You&#8217;ve already seen pWidget, the page stats overlay. Here are a couple more: I hope W3Counter&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m still working on the widgets for W3Counter. I&#8217;ve have too many other things that need attention recently to bring anything to finished form, but at least I have 6 of the 8 planned widgets working and in testing. You&#8217;ve already seen <a href="http://www.dangrossman.info/2007/10/07/widgets-and-custom-visitor-labels/">pWidget</a>, the page stats overlay. Here are a couple more: <span id="more-178"></span></p>
<table>
<tr>
<td><script type="text/javascript" src="http://beta.w3counter.com/stats/widget/visit_map/4493"></script></td>
<td><script type="text/javascript" src="http://beta.w3counter.com/stats/widget/mini_graph/4493"></script></td>
</tr>
<tr>
<td><script type="text/javascript" src="http://beta.w3counter.com/stats/widget/top_pages/4493"></script></td>
<td><code><script type="text/javascript" src="http://beta.w3counter.com/stats/widget/top_searches/4493"></script></code></td>
</tr>
</table>
<p>I hope W3Counter&#8217;s users like the widgets. They&#8217;re as easy to add to a site as copying a single line of JavaScript, but completely customizable at the same time. Most of them will allow you to customize borders, colors, sizes and fonts with JavaScript variables. A nice interface with some color pickers and sliders should make creating a custom widget easy as copy-and-paste. </p>
<p>I like the idea of putting stats on your site. I&#8217;ve already got the &#8220;Popular Posts&#8221; on the right and the custom counter at the top of this blog powered by W3Counter&#8217;s API. There&#8217;s a bunch of statistics on other sites of mine in the footer. Now the less technically savvy, and free users that don&#8217;t have access to the API, can add stats to their sites and blogs too.</p>
<p>Unlike Google and investment-backed startups in the space, everything I do with W3Counter needs to consider cost. I don&#8217;t have the luxury of cash to burn in the name of innovation or just plain bloat. Widespread adoption of the widgets would take a toll on the limited server resources available to the site. At least implementing a cache was dead simple. Symfony saves me time again and again. Cacheing the full output of the widgets for every user with a 5 minute expiration takes exactly this much work:</p>
<blockquote><pre>/apps/w3counter/modules/widgets/cache.yml:
all:
  enabled:     on
  with_layout: true
  lifetime:    300</pre>
</blockquote>
<p>I build them anyway in hope that they might bring in new users and perhaps some new subscribers. And because I love to build things. That little interactive visitor map was a lot of fun. </p>
<p>I had to derive the formula to convert longitude and latitude to coordinates on a given size map image with an origin in the upper left. Then I had to find a mercator projection map of the world, the type of flat map that keeps latitude and longitude lines at right angles at the sacrifice of distorting the continents, or else a point in California might end up somewhere in the sea. I found one somewhere on a CIA site, and overlaid it to the vector map I wanted to use with 50% opacity and scaled my map until the continents lined up. </p>
<p>Then I wrote out the JavaScript to plot the points and attach mouseover functions to display the location in a partially transparent tooltip. It took a while but now I know how a service like Google Maps knows where to place its markers on a flat map given latitude and longitude. </p>
<blockquote><p>$x = ($longitude + 180) * ($width / 360);<br />
$y = (($latitude * -1) + 90) * ($height / 180);</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dangrossman.info/2007/10/14/bringing-the-web-stats-to-your-site/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Stumbling Across the Web #2</title>
		<link>http://www.dangrossman.info/2007/01/14/stumbling-across-the-web-2/</link>
		<comments>http://www.dangrossman.info/2007/01/14/stumbling-across-the-web-2/#comments</comments>
		<pubDate>Mon, 15 Jan 2007 03:44:59 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Stumbling]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[personalized homepage services]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pixel]]></category>
		<category><![CDATA[software documentation]]></category>
		<category><![CDATA[viral marketing]]></category>
		<category><![CDATA[web applications]]></category>
		<category><![CDATA[Web Client Class]]></category>
		<category><![CDATA[Web Developer Toolbar]]></category>
		<category><![CDATA[web stats]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://www.dangrossman.info/2007/01/14/stumbling-across-the-web-2/</guid>
		<description><![CDATA[Where the Hell is Matt? Another YouTube viral marketing video. Did you notice the Stride gum logo appear several times? Would you have noticed it if I didn&#8217;t mention it? PHP UTF-8 Cheatsheet Writing web applications that deal with multiple languages is a messy process. You can never be sure what encoding is coming in, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.youtube.com/watch?v=bNF_P281Uu4&#038;eurl=">Where the Hell is Matt?</a><br />
Another YouTube viral marketing video. Did you notice the Stride gum logo appear several times? Would you have noticed it if I didn&#8217;t mention it?<span id="more-63"></span></p>
<p><a href="http://www.nicknettleton.com/zine/php/php-utf-8-cheatsheet">PHP UTF-8 Cheatsheet</a><br />
Writing web applications that deal with multiple languages is a messy process. You can never be sure what encoding is coming in, but you can make a decent attempt at it with UTF-8. This cheatsheet shows you what&#8217;s involved in handling UTF-8 data in PHP.</p>
<p><a href="http://snoopy.sourceforge.net/">Snoopy: The Web Client Class for PHP</a><br />
One of my favorite PHP classes. I don&#8217;t use it much anymore, but I used to; it makes grabbing webpages, stripping them of HTML, retrieving all the links on pages, submitting forms, sending and receiving cookies, and everything else a browser would do easy in PHP.</p>
<p><a href="http://www.netvibes.com">Netvibes</a><br />
My favorite among all the personalized homepage services. It&#8217;s quick and responsive even on older computers, I&#8217;ve never encountered a bug, and you can make virtually anything into a Netvibes module if there isn&#8217;t already one made. I use it to organize my RSS feeds, my Google calendar, check the weather and check my web stats (RSS feeds from W3Counter).</p>
<p><a href="http://anybrowser.com/ScreenSizeTest.html">AnyBrowser Screen Size Test</a><br />
A simple tool which opens a URL in a specific sized browser window. The Web Developer Toolbar for Firefox handles resizing for me, but I still use this to test pages at 800&#215;600 in Internet Explorer, as I have been for almost 7 years now.</p>
<p><a href="http://web.archive.org/">Archive.org</a><br />
Look at previous versions of any webpage going back more than 10 years. Great for checking out a domain you&#8217;re interested in buying or advertising on. Also great for verifying you don&#8217;t overestimate how many years you&#8217;ve been using some site (like AnyBrowser).</p>
<p><a href="http://www.example.com">Example.com</a><br />
Mysite.com and yoursite.com get far too many free incoming links from casual forum posts and software documentation. When you&#8217;re writing instructions telling someone to provide their website address, use example.com, example.net or example.org as your example. That&#8217;s what they&#8217;re specifically reserved for.</p>
<p><a href="http://csstype.com/">CSSTYPE v2</a><br />
Pixel perfect text styles for your website. Change the appearance of the text with the selection and input fields, see the results instantly, and click the CSS link to grab the styles for your own site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dangrossman.info/2007/01/14/stumbling-across-the-web-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
