Skip to content

Commit

Permalink
ga.py added
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayal Chand Aichara committed Jul 5, 2019
1 parent 602211c commit aa6a922
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To access google sheets, you must have permission to edit google sheet to be acc

## Usage
### 1. [Extracting data from Google Big Query as pandas DataFrame](https://github.com/dc-aichara/google-products-with-python/blob/master/bq.py)
When you run bq.py for the first time, it will produce a link to authorize and ask to enter authorization code. Copy & paste url in browser and authorize application.
When you run `bq.py` for the first time, it will produce a link to authorize and ask to enter authorization code. Copy & paste url in browser and authorize application.
```text
$ cd google-products-with-python
Expand All @@ -45,6 +45,10 @@ $ python3 csql.py
To learn more, please read [Medium](https://medium.com/@dcaichara/play-with-google-spreadsheets-with-python-301dd4ee36eb) article.

### 4. [Getting Google Analytics data with python ](https://github.com/dc-aichara/google-products-with-python/blob/master/ga.py)
- Get view id from your google analytics account and get client secret from google service account.
- Replace view id and client secret path in `ga.py`.
- Edit start and end dates in `ga.py`.
- Edit metrics on `ga.py`.

# References :
```text
Expand Down
2 changes: 1 addition & 1 deletion ga.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This python script would be used to get Google analytics data such as user, sessions etc on particular website
# This uses Google Analytics API V4
# Get VIEW_ ID From you Google Analytics web account
# You can modify range of data or what data you want etc
# You can modify range of data or what data you want
########################################################################################################################
import argparse

Expand Down

0 comments on commit aa6a922

Please sign in to comment.