{"id":16148720,"url":"https://github.com/deevus/analytics-plugin-profitwell","last_synced_at":"2025-10-26T11:42:17.133Z","repository":{"id":57177651,"uuid":"355774992","full_name":"deevus/analytics-plugin-profitwell","owner":"deevus","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-10T01:05:03.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-02-13T03:22:00.100Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/deevus.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":"2021-04-08T05:32:08.000Z","updated_at":"2022-02-08T19:31:54.000Z","dependencies_parsed_at":"2022-09-14T02:30:41.295Z","dependency_job_id":null,"html_url":"https://github.com/deevus/analytics-plugin-profitwell","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/deevus%2Fanalytics-plugin-profitwell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fanalytics-plugin-profitwell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fanalytics-plugin-profitwell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deevus%2Fanalytics-plugin-profitwell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deevus","download_url":"https://codeload.github.com/deevus/analytics-plugin-profitwell/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247552923,"owners_count":20957374,"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-10T00:34:41.694Z","updated_at":"2025-10-26T11:42:12.090Z","avatar_url":"https://github.com/deevus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\ntitle: Adding Profitwell to your app using open source analytics\ndescription: Connect Profitwell to the analytics library\npageTitle: Profitwell\n--\u003e\n\n# Profitwell\n\nThis library exports the `profitwell` plugin for the [`analytics`](https://www.npmjs.com/package/analytics) package \u0026 standalone methods for any project to use to make it easier to interact with [Profitwell](https://www.profitwell.com/).\n\nThis analytics plugin will load Profitwell into your application.\n\n## Installation\n\n```bash\nnpm install analytics\nnpm install analytics-plugin-profitwell\n```\n\n## How to use\n\n```typescript\nimport Analytics from 'analytics'\nimport profitwell from 'analytics-plugin-profitwell'\n\nconst analytics = Analytics({\n  app: 'awesome-app',\n  plugins: [\n    profitwell({\n      publicToken: '1234' // required\n      identifyMode: 'user_id' // optional (valid values: user_id, email, custom)\n      getCustomId(traits) {\n        return traits.stripeId;\n      }, // required if `identifyMode` is \"custom\"\n    })\n  ]\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeevus%2Fanalytics-plugin-profitwell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeevus%2Fanalytics-plugin-profitwell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeevus%2Fanalytics-plugin-profitwell/lists"}