Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 1.18 KB

File metadata and controls

26 lines (15 loc) · 1.18 KB

Production-BigQueryGoogleAnalyticsAPI

This is a production ready version of BigQueryGoogleAnalyticsAPI. We are using nginx web server. To deploy it with docker files included, just be in the folder as working directory and type :

docker-compose up --build -d

or

execute run_docker.sh

API functionalities

The api provide 4 different endpoints to use:

  • /report/cvr/<int:days> : provides conversion rate for last x days
  • /report/cvr/compare-periods/<int:days> : provides conversion rate for last x days and the previous period
  • /report/cvr/compare-periods/device/usertype/<int:days> : provides conversion rate for last x days and the previous period groupped by device and user type
  • /report/cvr/<int:days>/csv : exports conversion rate for last x days in a csv file
  • /report/userprofile/<int:id> : exports user's profile schema

To succesfully run the api you must include your credentials from google cloud serivce account on your folder path with the name "key.json".

You can see the app deployed live here : https://malliosapi.herokuapp.com/

To get a csv export for conversion rate last 7 days click here : https://malliosapi.herokuapp.com/report/cvr/7/csv