analytical 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -1,7 +1,7 @@
1
1
  = Analytical
2
2
 
3
3
  Gem for managing multiple analytics services in your rails app.
4
- Initial service implementations include: Google Analytics, Clicky[http://getclicky.com], and KISSMetrics[http://kissmetrics.com].
4
+ Service implementations include: Google Analytics, Clicky[http://getclicky.com], CrazyEgg[http://www.crazyegg.com], and KISSMetrics[http://kissmetrics.com].
5
5
 
6
6
  == Usage
7
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.0
1
+ 0.11.0
data/analytical.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{analytical}
8
- s.version = "0.10.0"
8
+ s.version = "0.11.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-20}
12
+ s.date = %q{2010-05-31}
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 = [
@@ -80,6 +80,7 @@ Gem::Specification.new do |s|
80
80
  "lib/analytical/bot_detector.rb",
81
81
  "lib/analytical/clicky.rb",
82
82
  "lib/analytical/console.rb",
83
+ "lib/analytical/crazy_egg.rb",
83
84
  "lib/analytical/google.rb",
84
85
  "lib/analytical/kiss_metrics.rb",
85
86
  "rails/init.rb",
@@ -0,0 +1,24 @@
1
+ module Analytical
2
+ module CrazyEgg
3
+ class Api
4
+ include Analytical::Base::Api
5
+
6
+ def initialize(parent, options={})
7
+ super
8
+ @tracking_command_location = :body_append
9
+ end
10
+
11
+ def init_javascript(location)
12
+ return '' unless location==:body_append
13
+ code_url = "#{options[:key][0,4]}/#{options[:key][4,4]}"
14
+ protocol = options[:ssl] ? 'https' : 'http'
15
+ js = <<-HTML
16
+ <!-- Analytical Init: CrazyEgg -->
17
+ <script type="text/javascript" src="#{protocol}://s3.amazonaws.com/new.cetrk.com/pages/scripts/#{code_url}.js"> </script>
18
+ HTML
19
+ js
20
+ end
21
+
22
+ end
23
+ end
24
+ end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 10
7
+ - 11
8
8
  - 0
9
- version: 0.10.0
9
+ version: 0.11.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-20 00:00:00 -05:00
17
+ date: 2010-05-31 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -116,6 +116,7 @@ files:
116
116
  - lib/analytical/bot_detector.rb
117
117
  - lib/analytical/clicky.rb
118
118
  - lib/analytical/console.rb
119
+ - lib/analytical/crazy_egg.rb
119
120
  - lib/analytical/google.rb
120
121
  - lib/analytical/kiss_metrics.rb
121
122
  - rails/init.rb