analytical 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,13 @@ Add the following to your controllers:
9
9
 
10
10
  analytical :modules=>[:console, :google, :clicky]
11
11
 
12
+ Add a configuration file (config/analytical.yml) to declare your API keys, like so:
13
+
14
+ google:
15
+ key: UA-5555555-5
16
+ clicky:
17
+ key: 55555
18
+
12
19
  Then, in your template files, you'll want to add the analytical helper methods for initializing the tracking javascript:
13
20
 
14
21
  <!DOCTYPE html>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.8.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{analytical}
8
- s.version = "0.7.0"
8
+ s.version = "0.8.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joshua Krall"]
12
- s.date = %q{2010-05-04}
12
+ s.date = %q{2010-05-14}
13
13
  s.description = %q{Gem for managing multiple analytics services in your rails app.}
14
14
  s.email = %q{josh@transfs.com}
15
15
  s.extra_rdoc_files = [
@@ -16,6 +16,9 @@ module Analytical
16
16
  var _kmq = _kmq || [];
17
17
  (function(){function _kms(u,d){if(navigator.appName.indexOf("Microsoft")==0 && d)document.write("<scr"+"ipt defer='defer' async='true' src='"+u+"'></scr"+"ipt>");else{var s=document.createElement('script');s.type='text/javascript';s.async=true;s.src=u;(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(s);}}_kms('http' + ('https:' == document.location.protocol ? 's://': '://') + 'i.kissmetrics.com/i.js', 1);_kms('http'+('https:'==document.location.protocol ? 's://s3.amazonaws.com/' : '://')+'scripts.kissmetrics.com/#{options[:key]}.1.js',1);})();
18
18
  </script>
19
+ <script type="text/javascript">
20
+ _kmq.push(['pageView']);
21
+ </script>
19
22
  HTML
20
23
  js
21
24
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 7
7
+ - 8
8
8
  - 0
9
- version: 0.7.0
9
+ version: 0.8.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joshua Krall
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-04 00:00:00 -05:00
17
+ date: 2010-05-14 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency