<?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: Google Analytics Date Range &#8211; Analytics Today</title>
	<atom:link href="http://dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/feed/" rel="self" type="application/rss+xml" />
	<link>http://dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/</link>
	<description>Web Design, Javascript, CSS, and More...</description>
	<lastBuildDate>Tue, 22 Jun 2010 01:05:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brad</title>
		<link>http://dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/comment-page-1/#comment-29505</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Fri, 14 May 2010 19:42:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/#comment-29505</guid>
		<description>I hacked a few lines onto this to make it show the previous 3 calendar months prior to today. Seems to work but I didn&#039;t test the year subtraction bit strenuously.
var url = window.location.href;
var urlParam = &quot;&amp;pdr=&quot;;
var today = new Date();
var day = today.getDate().toString();
var month = (today.getMonth() + 1).toString();
var year = today.getFullYear().toString();
var start_year = today.getFullYear().toString();
var start_month = (today.getMonth() - 2).toString();
var todaysRange;
if(day &lt; 10)
	day = &#039;0&#039; + day;
if(month &lt; 10)
	month = &#039;0&#039; + month;
if(start_month &lt; 1){
	start_month  = start_month + 12;
start_year  = start_year - 1;}
if(start_month &lt; 10)
	start_month  = &#039;0&#039; + start_month;
var todaysRange = start_year + start_month + day + &#039;-&#039; + year + month + day;
if(url.indexOf(urlParam) &lt; 0)
	window.location.href += &#039;&amp;pdr=&#039; + todaysRange;</description>
		<content:encoded><![CDATA[<p>I hacked a few lines onto this to make it show the previous 3 calendar months prior to today. Seems to work but I didn&#8217;t test the year subtraction bit strenuously. </p>
<p>var url = window.location.href;<br />
var urlParam = &#8220;&amp;pdr=&#8221;;</p>
<p>var today = new Date();<br />
var day = today.getDate().toString();<br />
var month = (today.getMonth() + 1).toString();<br />
var year = today.getFullYear().toString();<br />
var start_year = today.getFullYear().toString();<br />
var start_month = (today.getMonth() &#8211; 2).toString();<br />
var todaysRange;</p>
<p>if(day &lt; 10)<br />
	day = &#039;0&#039; + day;</p>
<p>if(month &lt; 10)<br />
	month = &#039;0&#039; + month;</p>
<p>if(start_month &lt; 1){<br />
	start_month  = start_month + 12;<br />
start_year  = start_year &#8211; 1;}</p>
<p>if(start_month &lt; 10)<br />
	start_month  = &#039;0&#039; + start_month;</p>
<p>var todaysRange = start_year + start_month + day + &#039;-&#039; + year + month + day;</p>
<p>if(url.indexOf(urlParam) &lt; 0)<br />
	window.location.href += &#039;&amp;pdr=&#039; + todaysRange;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/comment-page-1/#comment-8876</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 09 Feb 2009 05:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/#comment-8876</guid>
		<description>@Cole
After line 14 (var today = new Date();) add the following line:
today.setDate(today.getDate()-1);
to turn Analytics Today into Analytics Yesterday!</description>
		<content:encoded><![CDATA[<p>@Cole</p>
<p>After line 14 (var today = new Date();) add the following line:</p>
<p>today.setDate(today.getDate()-1);</p>
<p>to turn Analytics Today into Analytics Yesterday!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cole</title>
		<link>http://dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/comment-page-1/#comment-8838</link>
		<dc:creator>Cole</dc:creator>
		<pubDate>Sun, 08 Feb 2009 23:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/#comment-8838</guid>
		<description>How could this script be modified to show YESTERDAY instead of TODAY?</description>
		<content:encoded><![CDATA[<p>How could this script be modified to show YESTERDAY instead of TODAY?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Vold</title>
		<link>http://dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/comment-page-1/#comment-1575</link>
		<dc:creator>Erik Vold</dc:creator>
		<pubDate>Thu, 16 Oct 2008 22:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/#comment-1575</guid>
		<description>Hey, love the user script!
I’m making a firefox extension to compile a bunch of GA user scripts together and was wondering if I could get permission from you to add this script to the extension?
Let me know,
Thanks,
Erik Vold</description>
		<content:encoded><![CDATA[<p>Hey, love the user script!</p>
<p>I’m making a firefox extension to compile a bunch of GA user scripts together and was wondering if I could get permission from you to add this script to the extension?</p>
<p>Let me know,<br />
Thanks,<br />
Erik Vold</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/comment-page-1/#comment-1441</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Wed, 01 Oct 2008 21:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/#comment-1441</guid>
		<description>The bug has been fixed!
** The userscript file and source code have now been updated</description>
		<content:encoded><![CDATA[<p>The bug has been fixed!</p>
<p>** The userscript file and source code have now been updated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/comment-page-1/#comment-569</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Fri, 04 Apr 2008 16:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/#comment-569</guid>
		<description>It appears as if Google has modified their URL slightly. Applying Analytics Today to:
&quot;&lt;strong&gt;https://www.google.com/analytics/reporting*&lt;/strong&gt;&quot;
instead of
&quot;&lt;strong&gt;https://www.google.com/analytics/reporting/dashboard*&lt;/strong&gt;&quot;
should do the trick.
(&lt;em&gt;Tools -&gt; Greasemonkey -&gt; Manage User Scripts -&gt; Click on Analytics Today in the left column -&gt; Edit the URL in the Included Pages section&lt;/em&gt;)
&lt;strong&gt;**The download and source code have now been modified&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>It appears as if Google has modified their URL slightly. Applying Analytics Today to:</p>
<p>&#8220;<strong><a href="https://www.google.com/analytics/reporting" rel="nofollow">https://www.google.com/analytics/reporting</a>*</strong>&#8221;</p>
<p>instead of</p>
<p>&#8220;<strong><a href="https://www.google.com/analytics/reporting/dashboard" rel="nofollow">https://www.google.com/analytics/reporting/dashboard</a>*</strong>&#8221; </p>
<p>should do the trick. </p>
<p>(<em>Tools -> Greasemonkey -> Manage User Scripts -> Click on Analytics Today in the left column -> Edit the URL in the Included Pages section</em>)</p>
<p><strong>**The download and source code have now been modified</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/comment-page-1/#comment-559</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 03 Apr 2008 05:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/#comment-559</guid>
		<description>Perfect!  Thanks for sharing this clever tool.</description>
		<content:encoded><![CDATA[<p>Perfect!  Thanks for sharing this clever tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arvin Bautista</title>
		<link>http://dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/comment-page-1/#comment-364</link>
		<dc:creator>Arvin Bautista</dc:creator>
		<pubDate>Thu, 06 Mar 2008 04:50:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dansnetwork.com/2008/01/09/google-analytics-date-range-analytics-today/#comment-364</guid>
		<description>This was exactly what I was looking for to track my new blog, http://greasypc.blogspot.com, and my other sites. I feel like I&#039;ve wasted so much time and worn out my wrist having to constantly change the date range.</description>
		<content:encoded><![CDATA[<p>This was exactly what I was looking for to track my new blog, <a href="http://greasypc.blogspot.com" rel="nofollow">http://greasypc.blogspot.com</a>, and my other sites. I feel like I&#8217;ve wasted so much time and worn out my wrist having to constantly change the date range.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
