LOGO

Google Analytics Today Bookmarklet - Quick Access

December 5, 2007
Google Analytics Today Bookmarklet - Quick Access

Bookmarklet Update for Google Analytics Today View

Important Update! A recent correction, identified by Ryan from CyberNet, has been implemented in the bookmarklet code. Please update your existing bookmarklet with the revised version provided below to ensure accurate functionality. We apologize for any inconvenience this may have caused.

As website owners, many of us rely on Google Analytics for valuable insights. However, the default reporting period of the last 30 days can be limiting when a focus on current-day data is desired. Checking today’s statistics requires manual date adjustments within the report.

Automating Today's View with a Bookmarklet

To streamline this process, a bookmarklet was created to automatically filter reports to display only today’s data. This tool can be customized for individual use with a simple modification.

The primary step involves replacing the placeholder ID within the bookmarklet code with the unique identifier for your specific Google Analytics account. This allows for quick access to daily performance metrics.

Furthermore, this approach enables the creation of multiple bookmarklets, each configured for a different Google Analytics account, offering enhanced organizational flexibility.

To begin, drag the following bookmarklet to your browser’s bookmarks bar:

Analytics Today Bookmarklet

Next, determine your Google Analytics account ID. Log in to your account and navigate to the main dashboard.

Locate the numerical ID following the "?id=" parameter in the URL and record it for later use.

Configuring the Bookmarklet

Open the properties of the newly added bookmarklet. (The following instructions are for Firefox, but a similar process applies in Internet Explorer.)

bookmarklet-fun-check-google-analytics-for-today-1.jpg

Within the location bar, find the section labeled "YOURIDHERE". Replace this placeholder with the Google Analytics account ID you previously saved.

bookmarklet-fun-check-google-analytics-for-today-2.jpg

Bookmarklet Code

For those interested in the underlying code, the bookmarklet is presented below:

javascript:var d=new Date();var pad='';var padm='';
if(d.getDate()<10){pad='0';};if(d.getMonth()<10){padm='0';};var t=''+d.getFullYear()+padm+(d.getMonth()+1)+pad+d.getDate();
location.href='https://www.google.com/analytics/reporting/dashboard?id=YOURIDHERE
&pdr='+t+'-'+t+'&cmp=average'

Seeking Improvements

We welcome suggestions for optimizing this bookmarklet. If you have ideas for a more efficient or elegant solution, please share them in the comments section below.

#google analytics#bookmarklet#website analytics#traffic#today#update