{"id":15583383,"url":"https://github.com/careydevelopment/analytics","last_synced_at":"2026-05-10T03:02:27.827Z","repository":{"id":57743755,"uuid":"387016009","full_name":"careydevelopment/analytics","owner":"careydevelopment","description":"Library that handles persistence and retrieval of analytics info for a Spring Boot-powered blog that uses MongoDB.","archived":false,"fork":false,"pushed_at":"2021-07-27T08:39:57.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T08:28:27.484Z","etag":null,"topics":["java-11","mongodb","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/careydevelopment.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-17T18:49:22.000Z","updated_at":"2021-07-27T08:40:01.000Z","dependencies_parsed_at":"2022-09-11T09:40:19.079Z","dependency_job_id":null,"html_url":"https://github.com/careydevelopment/analytics","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/careydevelopment/analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/careydevelopment%2Fanalytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/careydevelopment%2Fanalytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/careydevelopment%2Fanalytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/careydevelopment%2Fanalytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/careydevelopment","download_url":"https://codeload.github.com/careydevelopment/analytics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/careydevelopment%2Fanalytics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265846858,"owners_count":23838157,"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":["java-11","mongodb","spring-boot"],"created_at":"2024-10-02T20:07:51.246Z","updated_at":"2026-05-10T03:02:27.775Z","avatar_url":"https://github.com/careydevelopment.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Carey Development Logo](http://careydevelopment.us/img/branding/careydevelopment-logo-sm.png)\n\n# Analytics Library\n![](https://img.shields.io/badge/jdk-11-blue.svg) ![license](https://img.shields.io/badge/license-MIT-blue.svg) \n![](https://img.shields.io/badge/maven-3.6.3-blue.svg)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/us.careydevelopment.util/analytics/badge.svg)](https://search.maven.org/artifact/us.careydevelopment.util/analytics/1.7.0-RELEASE/jar)\n\n\n\n\nHandles analytics for the [Carey Development Blog](https://careydevelopment.us). It can also be used to handle analytics for other blogs powered by Spring Boot with MongoDB.\n\n## Persisting Analytics\nThe library persists analytics info whenever a visitor hits a page. The code logs the time of the visit, the URL of the page, its title and other important\ninfo.\n\nEach visit get persisted as a new (small) document in a collection that holds nothing but analytics info. \n\nIt's best to persist the analytics in a  collection that's in the same database as the blog itself. However, analytics could be stored in separate \ndatabases as well.\n\n## Retrieving Analytics\nThis library also handles retrieval of analytics info for display in admin consoles. \n\nIt's up the application that uses this dependency to implement a solution for displaying the data. \n\n## Service Layer\nAlmost all the fun stuff happens in [BaseWebPageVisitService](https://github.com/careydevelopment/analytics/blob/main/src/main/java/us/careydevelopment/util/analytics/service/BaseWebPageVisitService.java). So that's where you should turn your attention if you're interested in using this library.\n\n## Latest Release\nYou can pull it from the central Maven repositories:\n\n```xml\n \u003cdependency\u003e\n    \u003cgroupId\u003eus.careydevelopment.util\u003c/groupId\u003e\n    \u003cartifactId\u003eanalytics\u003c/artifactId\u003e\n    \u003cversion\u003e1.7.0-RELEASE\u003c/version\u003e\n \u003c/dependency\u003e\n```\n\n## License\nThis code is under the [MIT License](https://github.com/careydevelopment/analytics/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcareydevelopment%2Fanalytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcareydevelopment%2Fanalytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcareydevelopment%2Fanalytics/lists"}