Skip to content

Commit b4de00e

Browse files
committed
updates
1 parent 633fccc commit b4de00e

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
AUTH_URL=https://yourwebsite.piwik.pro/auth/token
2-
BASE_URL=https://yourwebsite.piwik.pro/api/analytics/v1/ #sessions query events
1+
AUTH_URL=https://yourwebsite.piwik.pro/auth/token # replace yourwebsite
2+
BASE_URL=https://yourwebsite.piwik.pro/api/analytics/v1/ # replace yourwebsite
33
WEBSITE_ID=
44
CLIENT_ID=
55
CLIENT_SECRET=

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,26 @@ A portable data-stack with:
1010
# Draft
1111
- requisites
1212
- cuenta demo de piwikpro
13-
- crear conectar service account
13+
- crear conectar service account. Add your service_account.json file in /reporting path
1414
- crear un sheets vacío, darle acceso al mail del service account
1515
- crear un data studio y conectarlo al sheets (hablar de caveats si se pierde la hoja)
1616
- duckdb / Docker Desktop
17+
- rename .env.example to .env and fill in your values
1718

1819
## Steps
1920
- make build
2021
- make run (generate data, save to duckdb, run dbt and export to sheets) -> container will keep running
2122
- connect data studio to sheets
23+
24+
# if you want to query data
25+
26+
Uncomment line 45, 46, 47 and replace the command value with:
27+
28+
 ```sh
29+
sh -c "python model_export.py && tail -f /dev/null
30+
```
31+
This will leave the container open so you can copy the files to query.
32+
2233
- make duckdb-files (if you want to query data)
2334
- make duckdb (query duckdb)
2435
@@ -29,4 +40,4 @@ A portable data-stack with:
2940
3041
- make clean (removes all generated files)
3142
32-
- To run in Github Actions, create secrets
43+
- To run in Github Actions, create your secrets for the .env file

reporting/service_account_example.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)