# Does anybody have an example of using Google Analytics to track unique pages?

**URL:** <https://www.ruby-forum.com/t/does-anybody-have-an-example-of-using-google-analytics-to-track-unique-pages/166530>\
**Category:** Rails\
**Created:** [April 26, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/does-anybody-have-an-example-of-using-google-analytics-to-track-unique-pages/166530 "2009-04-26T23:35:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![InventoryTrackers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/59ef9b/32.png) [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Post date:** [April 26, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/does-anybody-have-an-example-of-using-google-analytics-to-track-unique-pages/166530/1 "2009-04-26T23:35:41Z")

</div>

I posted two days ago asking how this group tracks their traffic and  
received the reply “Google Analytics?”

I Googled on “Rails Analytics” and have gone about 20 pages back  
without finding any explanations of how one installs and implements  
this into their code.

I own most Rails books and find no mention of this in their indexes.

Could someone share what the code looks like when they are looking to  
understand how often a SHOW action is performed on a particular  
record?

Or just how this is installed in a generic Rails application.

Thank you,  
David

---

<div class="post-metadata">

**Author:** ![InventoryTrackers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/59ef9b/32.png) [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Post date:** [April 27, 2009, 12:12am UTC](https://www.ruby-forum.com/t/does-anybody-have-an-example-of-using-google-analytics-to-track-unique-pages/166530/2 "2009-04-27T00:12:31Z")

</div>

On Sun, Apr 26, 2009 at 2:34 PM, InventoryTrackers  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I posted two days ago asking how this group tracks their traffic and  
> received the reply “Google Analytics?”
> 
> I Googled on “Rails Analytics” and have gone about 20 pages back  
> without finding any explanations of how one installs and implements  
> this into their code.

?! Uh, yeah. It’s actually “Google Analytics”: the name of the product  
(used to be called Urchin 'til Google bought the company).

And it just involves sticking a snippet of JavaScript in your pages. It  
may or may not be what you’re looking for, but it’s free for the basic  
functionality, so…

## HTH,

Hassan S. ------------------------ removed\_email\_address@domain.invalid
