{"id":13736805,"url":"https://github.com/devOpifex/shinymetrics","last_synced_at":"2025-05-08T13:31:29.257Z","repository":{"id":178661486,"uuid":"656917918","full_name":"devOpifex/shinymetrics","owner":"devOpifex","description":":straight_ruler: Analytics and telemetry for Shiny applications. ","archived":true,"fork":false,"pushed_at":"2023-12-24T01:22:40.000Z","size":4873,"stargazers_count":33,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T05:31:57.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pkg.shinymetrics.com","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devOpifex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-06-21T23:19:04.000Z","updated_at":"2024-10-22T16:06:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"da1c17f9-0a90-4bef-b0a9-2df642d73251","html_url":"https://github.com/devOpifex/shinymetrics","commit_stats":null,"previous_names":["devopifex/shinymetrics"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devOpifex%2Fshinymetrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devOpifex%2Fshinymetrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devOpifex%2Fshinymetrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devOpifex%2Fshinymetrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devOpifex","download_url":"https://codeload.github.com/devOpifex/shinymetrics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253077266,"owners_count":21850290,"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-08-03T03:01:28.952Z","updated_at":"2025-05-08T13:31:27.253Z","avatar_url":"https://github.com/devOpifex.png","language":"R","funding_links":[],"categories":["Developer Tools","R"],"sub_categories":["Monitoring and Analytics"],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\n\u003cimg src=\"man/figures/logo.png\" height = \"200px\" /\u003e\n\nR package to track shiny applications with Shinymetrics.\n\n[site](https://shinymetrics.com) | [docs](https.//pkg.shinymetrics.com)\n\n\u003c/div\u003e\n\n## Installation\n\nYou can install the development version of shinymetrics from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"remotes\")\nremotes::install_github(\"devOpifex/shinymetrics\")\n```\n\n## How it works\n\nPlace your token for your registered application in your `.Renviron`\n(or elsewhere as environment variable) as `SHINYMETRICS_TOKEN`.\n\n1. Create a tracker with the `Shinymetrics` class\n2. Include the tracker in the UI\n3. (Optional but recommended) include the server-side function `shinymetrics_server()` for useful information\n\n```r\nlibrary(shiny)\nlibrary(shinymetrics)\n\n# initialise the tracker\ntracker \u003c- Shinymetrics$new()$track_recommended()\n\nui \u003c- fluidPage(\n  tracker$include(), # include in the UI\n  trackingModalBS3() # consent prompt\n)\n\nserver \u003c- function(input, output, session) {\n  shinymetrics_server() # (optional) print information on tracking\n}\n\nshinyApp(ui, server)\n```\n\n[](man/figures/default.png)\n\n## Prompts\n\nThe package comes with prompts to help developers collect consent from\nusers to enable or disable tracking.\nThese prompts toggle tracking and cookies on and off but DO NOT store consent,\nif that is required you must implemented it yourself.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FdevOpifex%2Fshinymetrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FdevOpifex%2Fshinymetrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FdevOpifex%2Fshinymetrics/lists"}