{"id":19111255,"url":"https://github.com/callicoder/python-google-analytics-popular-pages","last_synced_at":"2025-04-30T20:48:40.915Z","repository":{"id":52312350,"uuid":"201452101","full_name":"callicoder/python-google-analytics-popular-pages","owner":"callicoder","description":"Python script to find the Top n pages from your Google analytics account and write the data to a file/stdout","archived":false,"fork":false,"pushed_at":"2021-04-30T20:50:50.000Z","size":7,"stargazers_count":7,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T08:34:31.287Z","etag":null,"topics":["google-analytics","google-analytics-api","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/callicoder.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-09T11:09:41.000Z","updated_at":"2023-10-04T17:08:11.000Z","dependencies_parsed_at":"2022-08-22T15:00:38.803Z","dependency_job_id":null,"html_url":"https://github.com/callicoder/python-google-analytics-popular-pages","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callicoder%2Fpython-google-analytics-popular-pages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callicoder%2Fpython-google-analytics-popular-pages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callicoder%2Fpython-google-analytics-popular-pages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callicoder%2Fpython-google-analytics-popular-pages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/callicoder","download_url":"https://codeload.github.com/callicoder/python-google-analytics-popular-pages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251781519,"owners_count":21642969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-analytics","google-analytics-api","python"],"created_at":"2024-11-09T04:27:48.133Z","updated_at":"2025-04-30T20:48:40.892Z","avatar_url":"https://github.com/callicoder.png","language":"Python","readme":"### Analyzer\n\nPython script to find the Top n pages from your Google analytics account and write the response to a file/stdout in json/yaml format \n\n### How to run\n\n+ **Use virtualenv to create a virtual environment**\n\n  ```bash\n  # Create a virtual env\n  $ virtualenv venv\n\n  # Activate virtual env\n  $ source venv/bin/activate\n  ```\n\n+ **Install dependencies using pip**\n\n  ```bash\n  $ pip install -r requirements.txt\n  ```\n\n+ **Specify Google service account credentials file location**\n\n  Follow [these instructions](https://cloud.google.com/iam/docs/creating-managing-service-accounts#iam-service-accounts-create-console) to create a service account in Google console. Download the `key.json` file and set the `KEY_FILE_LOCATION` in `.env`.\n\n  Note: You'll also need to enable Google analytics APIs.\n\n+ **Add Google Analytics VIEW_ID in environment**\n\n  Follow these steps to get the VIEW_ID for your analytics account:\n\n  * Sign in to Google Analytics.\n  * Click Admin, and navigate to View.\n  * In the VIEW column, click View Settings.\n  * You'll find View ID in Basic Settings.\n\n\n+ **Run the script**\n  \n  ```bash\n  $ python main.py \n  ```   \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallicoder%2Fpython-google-analytics-popular-pages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcallicoder%2Fpython-google-analytics-popular-pages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallicoder%2Fpython-google-analytics-popular-pages/lists"}