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.
- data/lib/ga-measurements.rb +3 -1
- metadata +1 -1
data/lib/ga-measurements.rb
CHANGED
@@ -4,7 +4,7 @@ class GAMeasurements
|
|
4
4
|
|
5
5
|
include HTTParty
|
6
6
|
|
7
|
-
TYPES = %w(pageview event item transaction
|
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
|