embulk-input-google_analytics 0.1.18.alpha → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -2
- data/README.md +24 -0
- data/embulk-input-google_analytics.gemspec +1 -2
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ab44fb8b7d3108fc5611a58e38640eb2839478b
|
4
|
+
data.tar.gz: c7dbaea282c1703273cffaf02799c5fc2a4a9013
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42e3f0dedf09f963e1e8d016cc673f4c5737a41f2a708e6b5f2245769862c71ba2bd50ca79b622c66a7b896135c18f7568e1db4c059d0ba42de359c02dcae4e8
|
7
|
+
data.tar.gz: 4e9e5f619ae9ddf6acfdd413984533f14d28cfbb2a59f34bf351b37a128e665e411a2f3cc49092cbf3b3841de9b099d85b42cd9b112bc7d7cc5413f6f2d32f67
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
-
|
1
|
+
## 0.1.18 - 2018-05-23
|
2
|
+
* Suport User Account Authentication [#33](https://github.com/treasure-data/embulk-input-google_analytics/pull/33)
|
3
|
+
* Ignore last_record_time if non-incremental task [#34](https://github.com/treasure-data/embulk-input-google_analytics/pull/34)
|
4
|
+
|
5
|
+
## 0.1.17 - 2018-04-16
|
2
6
|
|
3
7
|
* Add more descriptive error message when Google API return invalid time format [#32](https://github.com/treasure-data/embulk-input-google_analytics/pull/32)
|
4
8
|
|
5
|
-
|
9
|
+
## 0.1.16 - 2018-02-06
|
6
10
|
|
7
11
|
* Use user profile timezone when format next from_date [#31](https://github.com/treasure-data/embulk-input-google_analytics/pull/31)
|
8
12
|
|
data/README.md
CHANGED
@@ -22,6 +22,12 @@ Embulk input plugin for Google Analytics reports.
|
|
22
22
|
- **retry_limit**: Try to retry this times (integer, default: 5)
|
23
23
|
- **retry_initial_wait_sec**: Wait seconds for exponential backoff initial value (integer, default: 2)
|
24
24
|
|
25
|
+
### **New update from verions 0.1.18**
|
26
|
+
Started from version 0.1.18, the Plugin also supports User Account Authentication along with Service Account Authentication see: [OAuth 2.0 for Server-side Web Application](https://developers.google.com/identity/protocols/OAuth2WebServer). Extra optional configuration keys were added and the **json_key_content** is made optional
|
27
|
+
- **client_id**: client_id for application (string, optional)
|
28
|
+
- **client_secret**: client_secret for application (string, optional)
|
29
|
+
- **refresh_token**: the refresh_token obtained during exchange authentication code (string, optional)
|
30
|
+
|
25
31
|
### Get View ID
|
26
32
|
|
27
33
|
1. Go to the [Google Analytics sign in page](https://analytics.google.com/analytics/) and sign in.
|
@@ -95,6 +101,24 @@ in:
|
|
95
101
|
end_date: "2016-06-28"
|
96
102
|
```
|
97
103
|
|
104
|
+
## Config example using User Authentication
|
105
|
+
```yaml
|
106
|
+
in:
|
107
|
+
type: google_analytics
|
108
|
+
client_id: "#############apps.googleusercontent.com"
|
109
|
+
client_secret: "##############QLxgrfis4"
|
110
|
+
refresh_token: "##########awWNT9lTeGq8weKE"
|
111
|
+
view_id: 123111111
|
112
|
+
time_series: "ga:dateHour" # hourly basis
|
113
|
+
dimensions:
|
114
|
+
- "ga:browser"
|
115
|
+
metrics:
|
116
|
+
- "ga:visits"
|
117
|
+
- "ga:pageviews"
|
118
|
+
|
119
|
+
start_date: "2016-06-27"
|
120
|
+
end_date: "2016-06-28"
|
121
|
+
```
|
98
122
|
|
99
123
|
## Build
|
100
124
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new do |spec|
|
3
3
|
spec.name = "embulk-input-google_analytics"
|
4
|
-
spec.version = "0.1.18
|
4
|
+
spec.version = "0.1.18"
|
5
5
|
spec.authors = ["uu59"]
|
6
6
|
spec.summary = "Google Analytics input plugin for Embulk"
|
7
7
|
spec.description = "Loads records from Google Analytics."
|
@@ -27,6 +27,5 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_development_dependency 'simplecov'
|
28
28
|
spec.add_development_dependency "codeclimate-test-reporter"
|
29
29
|
spec.add_development_dependency "pry"
|
30
|
-
spec.add_development_dependency "pry-debugger-jruby"
|
31
30
|
spec.add_development_dependency "gem_release_helper", "~> 1.0"
|
32
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-google_analytics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.18
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- uu59
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,20 +192,6 @@ dependencies:
|
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
requirement: !ruby/object:Gem::Requirement
|
197
|
-
requirements:
|
198
|
-
- - ">="
|
199
|
-
- !ruby/object:Gem::Version
|
200
|
-
version: '0'
|
201
|
-
name: pry-debugger-jruby
|
202
|
-
prerelease: false
|
203
|
-
type: :development
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - ">="
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: '0'
|
209
195
|
- !ruby/object:Gem::Dependency
|
210
196
|
requirement: !ruby/object:Gem::Requirement
|
211
197
|
requirements:
|
@@ -263,9 +249,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
263
249
|
version: '0'
|
264
250
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
265
251
|
requirements:
|
266
|
-
- - "
|
252
|
+
- - ">="
|
267
253
|
- !ruby/object:Gem::Version
|
268
|
-
version:
|
254
|
+
version: '0'
|
269
255
|
requirements: []
|
270
256
|
rubyforge_project:
|
271
257
|
rubygems_version: 2.6.6
|