rack-google-analytics 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -8
- metadata +2 -2
data/README.md
CHANGED
@@ -1,18 +1,14 @@
|
|
1
|
-
#
|
1
|
+
# Rack google Analytics
|
2
2
|
|
3
3
|
Simple Rack middleware to help injecting the google analytics tracking code into the footer of your websites.
|
4
4
|
|
5
|
-
This middleware injects the code
|
5
|
+
This middleware injects either the synchronous or asynchronous google analytics tracker code into the correct place of any request with `Content-Type` containing `html` (therefore `text/html` and similar).
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
As of `0.2.0` there are no tests as I have not had chance to do this right.
|
10
|
-
|
11
|
-
Version 0.2.0 implements the default code to be the asynchronous google code (see: http://bit.ly/async-analytics ).
|
7
|
+
Formerly this gem had an environments setting, that has been removed pending refactoring.
|
12
8
|
|
13
9
|
## Usage
|
14
10
|
|
15
|
-
require 'rack
|
11
|
+
require 'rack/google-analytics'
|
16
12
|
use Rack::GoogleAnalytics, :tracker => 'UA-xxxxxx-x'
|
17
13
|
|
18
14
|
Note: since 0.2.0 this will use the asynchronous google tracker code, for the traditional behaviour please use:
|
@@ -28,6 +24,11 @@ This middleware *should* be thread safe. Although my experience in such areas is
|
|
28
24
|
|
29
25
|
## Change Log
|
30
26
|
|
27
|
+
* 0.9.1 Updated readme to reflect 0.9.0 merge from achiu
|
28
|
+
* 0.9.0 Include name changed from 'rack-google-analytics' to 'rack/google-analytics' more inline with the norm
|
29
|
+
* 0.6.0 Class now named Rack::GoogleAnalytics, in 0.5 and earlier this was incorrectly documented as Rack::GoogleTracker
|
30
|
+
* 0.2.0 Asynchronous code is now the default.
|
31
|
+
|
31
32
|
* 22-07-2010 Major re-write from Arthur Chiu, now correctly writes the Content-Length leader, and comes with tests (High five to @achiu) - this patch also backs-out the changes from @cimm - but they were un-tested (I intend to bring these back as soon as possible; this will probably constitute a 1.0 release when it happens)
|
32
33
|
* 19-01-2010 Second Release, patch from github.com/ralph - makes the default snippet the async version from google. Use regular synchronous code with: `:async => false`
|
33
34
|
* 27-12-2009 First Release, extracted from the Capistrano-Website project and packaged with Jeweler.
|