ga-measurements 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/ga-measurements.rb +3 -1
  2. metadata +1 -1
@@ -4,7 +4,7 @@ class GAMeasurements
4
4
 
5
5
  include HTTParty
6
6
 
7
- TYPES = %w(pageview event item transaction socia exception timing appview)
7
+ TYPES = %w(pageview event item transaction social exception timing appview)
8
8
  API_VERSION = 1
9
9
  API_ENDPOINT = "https://ssl.google-analytics.com/collect"
10
10
 
@@ -24,5 +24,7 @@ class GAMeasurements
24
24
  payload = params.merge({t: type, tid: property_id, cid: client_id, v: API_VERSION})
25
25
 
26
26
  response = self.class.post(API_ENDPOINT, { body: payload })
27
+
28
+ return response.code
27
29
  end
28
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ga-measurements
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: