{"id":42334851,"url":"https://github.com/datacite/datacite-tracker","last_synced_at":"2026-01-27T14:14:48.154Z","repository":{"id":57106095,"uuid":"467082368","full_name":"datacite/datacite-tracker","owner":"datacite","description":"Analytics tracking script for repositories","archived":false,"fork":false,"pushed_at":"2023-06-19T16:18:53.000Z","size":136,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-10-27T04:45:42.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/datacite.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":"2022-03-07T12:21:44.000Z","updated_at":"2023-05-10T13:08:19.000Z","dependencies_parsed_at":"2023-02-12T17:30:30.432Z","dependency_job_id":null,"html_url":"https://github.com/datacite/datacite-tracker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datacite/datacite-tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacite%2Fdatacite-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacite%2Fdatacite-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacite%2Fdatacite-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacite%2Fdatacite-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datacite","download_url":"https://codeload.github.com/datacite/datacite-tracker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacite%2Fdatacite-tracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28814565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-27T14:14:47.370Z","updated_at":"2026-01-27T14:14:48.149Z","avatar_url":"https://github.com/datacite.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DataCite Tracker\n\nTypescript/Javascript library that tracks usage events\n\nThis package can be used in the browser or as node package, the former requires less configuration, but the latter can be useful if including as part of a SPA.\n\n## Installation and Usage\n\n### Include\nThe tracking script can be included directly using a CDN, by default it tracks views.\nInclude it in your page tag for the dataset landing page.\n\nThe script can be configured with various options using data attribute tags.\n\n- data-repoid - required - This is the unique identifier for tracking your usage analytics - This will be provided by DataCite\n- data-doi - optional - The DOI you want to track - This can be optionally removed and the code will scan for the DOI in schema.org, DC metadata, URL\n- data-metric - optional - Type of metric to track, either 'view' or 'download' - Defaults to 'view'\n- data-autotrack - optional - Advanced usage to stop the auto tracking, this is for manual set up, i.e. custom javascript calling the trackMetric as required.\n- data-endpoint - optional - Advanced usage to specify a different API endpoint where events are sent - defaults to https://analytics.datacite.org\n\n\n```html\n\n\u003c!-- Track View --\u003e\n\u003cscript defer data-doi=\"10.5072/1234\"\n        data-repoid=\"example.com\"\n        src=\"https://cdn.jsdelivr.net/npm/@datacite/datacite-tracker\"\u003e\u003c/script\u003e\n\n\u003c!-- Track Download --\u003e\n\u003cscript defer data-doi=\"10.5072/1234\"\n        data-repoid=\"example.com\"\n        data-metric=\"download\"\n        src=\"https://cdn.jsdelivr.net/npm/@datacite/datacite-tracker\"\u003e\u003c/script\u003e\n\n```\n\n## Development\n\n### Build\n\n- npm run build - Builds the TS package and puts in dist\n- npm run rollup - Builds minified JS version for inclusion in pages\n- npm ci - For CI usage generally but runs both of the above\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacite%2Fdatacite-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatacite%2Fdatacite-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacite%2Fdatacite-tracker/lists"}