-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TDL-18524 updated readme and added sample config #74
Open
namrata270998
wants to merge
9
commits into
master
Choose a base branch
from
TDL-18524-update-readme
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
256274c
updated readme and added sample config
namrata270998 2ec89c9
added discover and sync mode details
namrata270998 d6d48c6
removed the 'for dev' word
namrata270998 a59405b
added mor specific details regarding auth
namrata270998 b74d904
updated endpoints
namrata270998 98168e6
updated fornatting
namrata270998 fe0b060
fixed the typo
namrata270998 67af3f2
added bookmarking in readme
namrata270998 f3460fd
added field exclusion note in readme
namrata270998 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,38 @@ | ||
# tap-google-analytics | ||
|
||
This tap is currently under development, and incomplete. | ||
This is a [Singer](https://singer.io) tap that produces JSON-formatted data following the [Singer spec](https://github.com/singer-io/getting-started/blob/master/SPEC.md). | ||
|
||
How to use it: | ||
- `tap-google-analytics` works together with any other [Singer Target](https://singer.io) to move data from Google Analytics API to any target destination. | ||
- Extracts the following pre-made and any self-made reports from [Google Analytics Reporting API](https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet): | ||
- Audience Overview | ||
- Audience Geo Location | ||
- Audience Technology | ||
- Acquisition Overview | ||
- Behavior Overview | ||
- Ecommerce Overview | ||
## Configuration | ||
|
||
This tap requires a `config.json` which specifies details regarding [OAuth 2.0](https://developers.google.com/analytics/devguides/reporting/core/v4/authorization#OAuth2Authorizing) authentication, a cutoff date for syncing historical data, and an optional flag which controls the method of authentication. See [config.sample.json](config.sample.json) for an example. You may specify an API key instead of OAuth parameters for development purposes, as detailed below. | ||
|
||
To run the discover mode of `tap-google-analytics` with the configuration file, use this command: | ||
|
||
```bash | ||
$ tap-google-analytics -c my-config.json -d | ||
``` | ||
|
||
To run he sync mode of `tap-google-analytics` with the catalog file, use the command: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo in the work "the", eg "To run the sync mode of..." There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, fixed the typo |
||
|
||
```bash | ||
$ tap-google-analytics -c my-config.json --catalog catalog.json | ||
``` | ||
|
||
## Service Account Authentication | ||
|
||
Service accounts are useful for automated, offline, or scheduled access to Google Analytics data for your own account. For example, to build a live dashboard of your own Google Analytics data and share it with other users. | ||
See the [Google Analytics Service Accounts](https://developers.google.com/analytics/devguides/reporting/core/v4/authorization#service_accounts) section for more information on how to set up the service account. | ||
|
||
To use an API key, include a `private_key` and `client_email` configuration variables in your `config.json` and set it to the value of your credentials. | ||
|
||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"start_date": "2021-11-22T00:00:00Z", | ||
"report_definitions": [ | ||
{ | ||
"id": "report_id", | ||
"name": "Report Name" | ||
} | ||
], | ||
"refresh_token": "my_token", | ||
"client_id": "client_id", | ||
"client_secret": "client_secret", | ||
"auth_method": "oauth2" | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you mention the field selection for pre-made reports must follow google's exclusion rule, and point users to the Metrics & Dimensions page https://ga-dev-tools.web.app/dimensions-metrics-explorer/. These rules are handled in the Stitch UI by dynamically marking fields as unsupported as you select a field, but will need to be handled by the user if they wish to run the tap directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a note regarding the field exclusion and also added the reference link for the same.