Skip to content

xarismallios/BigQuery-and-GoogleAnalytics-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published