gricer 0.0.1 → 0.0.2

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.
@@ -0,0 +1,19 @@
1
+ en:
2
+ gricer:
3
+ description: 'Gricer Web Analysis'
4
+ dashboard:
5
+ overview:
6
+ title: 'Gricer Dashboard'
7
+ sessions:
8
+ one: '%{count} Visit'
9
+ other: '%{count} Visits'
10
+ requests:
11
+ one: '%{count} Page Call'
12
+ other: '%{count} Page Calls'
13
+ requests_per_session: '%{count} Pages/Visit'
14
+ bounce_rate: '%{percentage} Bounce Rate'
15
+ avg_duration: '%{time} Average Duration of Visits'
16
+ new_visitors: '%{percentage} New Visitors'
17
+ new_sessions:
18
+ one: '%{count} new Visitor'
19
+ other: '%{count} new Visitors'
@@ -0,0 +1,166 @@
1
+ class CreateVisitsTracking < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :sessions do |t|
4
+ t.integer :previous_session_id
5
+ t.integer :agent_id
6
+ t.integer :requests_count
7
+
8
+ t.string :ip_address_hash
9
+ t.string :domain
10
+ t.string :country, limit: '2'
11
+ t.string :region
12
+ t.string :city
13
+ t.string :postal_code
14
+ t.float :longitude
15
+ t.float :latitude
16
+
17
+ t.boolean :javascript, default: false
18
+ t.boolean :java
19
+ t.string :flash_version
20
+ t.string :flash_major_version
21
+ t.string :silverlight_version
22
+ t.string :silverlight_major_version
23
+ t.integer :screen_width
24
+ t.integer :screen_height
25
+ t.string :screen_size
26
+ t.integer :screen_depth
27
+
28
+ t.string :requested_locale_major, limit: '2'
29
+ t.string :requested_locale_minor, limit: '2'
30
+
31
+ t.timestamps
32
+ end
33
+
34
+ add_index :sessions, :ip_address_hash
35
+ add_index :sessions, :agent_id
36
+ add_index :sessions, :country
37
+ add_index :sessions, :city
38
+ add_index :sessions, :javascript
39
+ add_index :sessions, :java
40
+ add_index :sessions, :flash_version
41
+ add_index :sessions, :flash_major_version
42
+ add_index :sessions, :silverlight_version
43
+ add_index :sessions, :silverlight_major_version
44
+ add_index :sessions, :screen_width
45
+ add_index :sessions, :screen_height
46
+ add_index :sessions, :screen_size
47
+ add_index :sessions, :screen_depth
48
+
49
+
50
+ create_table :agents do |t|
51
+ t.integer :requests_count
52
+ t.integer :sessions_count
53
+
54
+ t.string :request_header
55
+ t.integer :agent_class_id
56
+ t.string :name
57
+ t.string :full_version
58
+ t.string :major_version
59
+ t.string :engine_name
60
+ t.string :engine_version
61
+ t.string :os
62
+ end
63
+
64
+ add_index :agents, :request_header
65
+ add_index :agents, :name
66
+ add_index :agents, :major_version
67
+ add_index :agents, :full_version
68
+ add_index :agents, :engine_name
69
+ add_index :agents, :engine_version
70
+ add_index :agents, :os
71
+ add_index :agents, :agent_class_id
72
+
73
+ create_table :requests do |t|
74
+ t.integer :session_id
75
+ t.integer :agent_id
76
+
77
+ t.string :host
78
+ t.string :path
79
+ t.string :method
80
+ t.string :protocol
81
+
82
+ t.string :controller
83
+ t.string :action
84
+ t.string :format
85
+ t.string :param_id
86
+ t.integer :user_id
87
+
88
+ t.integer :status_code
89
+ t.string :content_type
90
+ t.integer :body_size
91
+
92
+ t.integer :system_time
93
+ t.integer :user_time
94
+ t.integer :total_time
95
+ t.integer :real_time
96
+
97
+ t.boolean :javascript
98
+ t.integer :window_width
99
+ t.integer :window_height
100
+
101
+ t.string :referer_protocol
102
+ t.string :referer_host
103
+ t.string :referer_path
104
+ t.text :referer_params
105
+
106
+ t.string :search_engine
107
+ t.string :search_query
108
+
109
+ t.boolean :is_first_in_session
110
+
111
+ t.string :locale_major, limit: 2
112
+ t.string :locale_minor, limit: 2
113
+
114
+ t.timestamps
115
+ end
116
+
117
+ add_index :requests, :session_id
118
+ add_index :requests, :agent_id
119
+ add_index :requests, :path
120
+ add_index :requests, :javascript
121
+ add_index :requests, :window_width
122
+ add_index :requests, :window_height
123
+ add_index :requests, :referer_host
124
+ add_index :requests, :search_engine
125
+ add_index :requests, :search_query
126
+ end
127
+
128
+ def self.down
129
+ remove_index :requests, :session_id
130
+ remove_index :requests, :agent_id
131
+ remove_index :requests, :path
132
+ remove_index :requests, :javascript
133
+ remove_index :requests, :window_width
134
+ remove_index :requests, :window_height
135
+ remove_index :requests, :referer_host
136
+ remove_index :requests, :search_engine
137
+ remove_index :requests, :search_query
138
+
139
+ drop_table :requests
140
+
141
+ remove_index :agents, :request_header
142
+ remove_index :agents, :name
143
+ remove_index :agents, :major_version
144
+ remove_index :agents, :full_version
145
+ remove_index :agents, :engine_name
146
+ remove_index :agents, :engine_version
147
+ remove_index :agents, :agent_class_id
148
+ remove_index :agents, :os
149
+
150
+ drop_table :agents
151
+
152
+ remove_index :sessions, :ip_address_hash
153
+ remove_index :sessions, :country
154
+ remove_index :sessions, :city
155
+ remove_index :sessions, :javascript
156
+ remove_index :sessions, :java
157
+ remove_index :sessions, :flash_version
158
+ remove_index :sessions, :silverlight_version
159
+ remove_index :sessions, :screen_width
160
+ remove_index :sessions, :screen_height
161
+ remove_index :sessions, :screen_depth
162
+
163
+
164
+ drop_table :sessions
165
+ end
166
+ end
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ #!/usr/bin/env ruby
3
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
4
+
5
+ ENGINE_PATH = File.expand_path('../..', __FILE__)
6
+ load File.expand_path('../../spec/dummy/script/rails', __FILE__)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gricer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sven G. Broenstrup
@@ -149,10 +149,13 @@ files:
149
149
  - spec/routing/requests_routes_spec.rb
150
150
  - spec/routing/sessions_routes_spec.rb
151
151
  - spec/spec_helper.rb
152
+ - db/migrate/20110629151515_create_visits_tracking.rb
153
+ - config/locales/en.yml
154
+ - config/routes.rb
152
155
  - MIT-LICENSE
153
156
  - Rakefile
154
157
  - README.rdoc
155
- - config/routes.rb
158
+ - script/rails
156
159
  has_rdoc: true
157
160
  homepage:
158
161
  licenses: []