{"id":24795096,"url":"https://github.com/s4k1dl0/google_analytics_app","last_synced_at":"2025-03-24T19:16:50.959Z","repository":{"id":258800547,"uuid":"875718386","full_name":"S4k1dl0/google_analytics_app","owner":"S4k1dl0","description":"Google Analytics Reporting Application Example Built with Ruby and Sinatra framework","archived":false,"fork":false,"pushed_at":"2024-10-20T17:26:19.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T23:30:37.487Z","etag":null,"topics":["google-analytics","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/S4k1dl0.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-20T17:10:38.000Z","updated_at":"2025-01-19T17:37:20.000Z","dependencies_parsed_at":"2024-10-21T22:46:51.612Z","dependency_job_id":null,"html_url":"https://github.com/S4k1dl0/google_analytics_app","commit_stats":null,"previous_names":["sakidlo/google_analytics_app","s4k1dl0/google_analytics_app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/S4k1dl0%2Fgoogle_analytics_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/S4k1dl0%2Fgoogle_analytics_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/S4k1dl0%2Fgoogle_analytics_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/S4k1dl0%2Fgoogle_analytics_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/S4k1dl0","download_url":"https://codeload.github.com/S4k1dl0/google_analytics_app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245334914,"owners_count":20598389,"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","ruby"],"created_at":"2025-01-29T23:28:35.680Z","updated_at":"2025-03-24T19:16:50.921Z","avatar_url":"https://github.com/S4k1dl0.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Analytics Reporting Application Example Built with Ruby and Sinatra framework \n\nThis is a simple web application built using Ruby and Sinatra that allows users to retrieve and display Google Analytics data based on a selected date range. The application utilizes the Google Analytics Reporting API to fetch data such as sessions and pageviews.\n\n## Features\n\n- User-friendly interface to select date ranges.\n- Displays sessions and pageviews for the selected dates.\n- Built with Ruby and Sinatra framework.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- Ruby (version 2.5 or higher)\n- Bundler\n- Google Cloud account with access to Google Analytics\n\n## Getting Started\n\n### 1. Clone the repository\n\nClone this repository to your local machine:\n\n```bash\ngit clone https://github.com/sakidlo/google_analytics_app.git\ncd google_analytics_app\n```\n### 2. Set up Google Cloud\n\nFollow these steps to set up your Google Cloud environment:\n\n- Go to the [Google Cloud Console](https://console.cloud.google.com/)\n- Create a new project.\n- Enable the Google Analytics Reporting API.\n- Create a Service Account and download the `credentials.json` file.\n- Share your Google Analytics view with the service account email.\n\n### 3. Install dependencies\n\nMake sure you have Bundler installed. Then run:\n\n```bash\nbundle install\n```\n### 4. Configure the application\n\n- Move the downloaded `credentials.json` file to the `config` directory.\n- Open app.rb and update the `CREDENTIALS_PATH` variable to point to your `credentials.json` file:\n\n```bash\nCREDENTIALS_PATH = 'config/credentials.json' # Update this path if necessary\n```\n\n- Replace `'YOUR_VIEW_ID'` in `app.rb` with your actual Google Analytics View ID.\n\n### 5. Run the application\nStart the Sinatra application with the following command:\n\n```bash\nruby app.rb\n```\n\n### 6. Access the application\nOpen your web browser and navigate to:\n\n```bash\nhttp://localhost:4567\n```\n\n## Acknowledgments\n\n[Sinatra](https://sinatrarb.com/) - The web framework used for this project.\n\n[Google Analytics Reporting API] - The API used to fetch analytics data.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs4k1dl0%2Fgoogle_analytics_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs4k1dl0%2Fgoogle_analytics_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs4k1dl0%2Fgoogle_analytics_app/lists"}