{"id":16808912,"url":"https://github.com/timakin/uucounter","last_synced_at":"2025-03-17T09:43:55.475Z","repository":{"id":59158898,"uuid":"57955213","full_name":"timakin/uucounter","owner":"timakin","description":"Simple UU (indicator of pageview from unique user) counter for rails app","archived":false,"fork":false,"pushed_at":"2016-09-11T04:19:38.000Z","size":1178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T19:19:47.110Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/timakin.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-03T08:53:15.000Z","updated_at":"2016-05-05T18:37:00.000Z","dependencies_parsed_at":"2022-09-13T20:03:52.175Z","dependency_job_id":null,"html_url":"https://github.com/timakin/uucounter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fuucounter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fuucounter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fuucounter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fuucounter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timakin","download_url":"https://codeload.github.com/timakin/uucounter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244012784,"owners_count":20383659,"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":[],"created_at":"2024-10-13T10:00:20.615Z","updated_at":"2025-03-17T09:43:55.451Z","avatar_url":"https://github.com/timakin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"= [WIP] UUCounter\n\n## Overview\n\nUUCounter is the plugin to trace unique user pageviews with easy integration.\nIt is inspired by [Ahoy](https://github.com/ankane/ahoy), but limited to a few functions for simplicity.\n\n## Installation\n\nIn your Gemfile,\n\n```\ngem 'uu_counter'\n```\n\nAfter installation, copy the migration files to your project.\n\n```\nrake uu_counter:install:migrations\n```\n\n## Overview\n\nThis command will generate pageview tracing model.\nTable schema is...\n\n```\nid:   integer\nuuid: string\npath: string\ncreated_at: datetime\nupdated_at: datetime\n```\n\nYou can get the count of UU in the specified path through a module function.\n\n```\nUUCounter::Accessor#get_count(path): Returns UU count to the path\n```\n\n## Usage\n\nAt first, write this line on your project's config/routes.rb.\n\n```\nmount UuCounter::Engine =\u003e \"/uu_counter\"\n```\n\nIn the page you'd track pageview, you should embed this js script.\n\n```\n$(function(){\n    UUCounter.track();\n});\n```\n\nAnd you must assign schema to your database with `db:migrate`\nAfter that, when you check UU count, you can get it with following code.\n\n```\nclass TestController \u003c ActionController::Base\n    ...\n    def foo\n        @pageview_count = UUCounter::Accessor.get_count(\"/test/path\")\n    end\n    ...\nend\n```\n\nThis project rocks and uses MIT-LICENSE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimakin%2Fuucounter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimakin%2Fuucounter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimakin%2Fuucounter/lists"}