{"id":21228188,"url":"https://github.com/hexlet/analytics-plugin-pipedream","last_synced_at":"2025-06-14T23:34:20.202Z","repository":{"id":57115834,"uuid":"372495033","full_name":"Hexlet/analytics-plugin-pipedream","owner":"Hexlet","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-30T19:52:45.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-16T02:47:10.143Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hexlet.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-31T12:14:40.000Z","updated_at":"2021-06-02T12:28:09.000Z","dependencies_parsed_at":"2025-01-21T17:52:33.359Z","dependency_job_id":null,"html_url":"https://github.com/Hexlet/analytics-plugin-pipedream","commit_stats":null,"previous_names":["hexlet/analytics-pipedream"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexlet%2Fanalytics-plugin-pipedream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexlet%2Fanalytics-plugin-pipedream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexlet%2Fanalytics-plugin-pipedream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hexlet%2Fanalytics-plugin-pipedream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hexlet","download_url":"https://codeload.github.com/Hexlet/analytics-plugin-pipedream/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243672373,"owners_count":20328762,"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-11-20T23:14:58.541Z","updated_at":"2025-03-15T01:43:46.856Z","avatar_url":"https://github.com/Hexlet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# analytics-pipedream\n\nThis library exports the Pipedream plugin for the [analytics](https://www.npmjs.com/package/analytics) package.\n\n## Installation\n\n```\nnpm install analytics @hexlet/analytics-plugin-pipedream\n```\n\n## How to use\n\n```javascript\nimport Analytics from 'analytics';\nimport pipedreamPlugin from '@hexlet/analytics-plugin-pipedream';\n\nconst pipedreamConfig = {\n  event_one: 'https://triggerUniquePathOne.m.pipedream.net', // this must be pipedream trigger url\n  event_two: 'https://triggerUniquePathTwo.m.pipedream.net',\n};\n\nconst analytics = Analytics({\n  app: 'my-app',\n  plugins: [\n    pipedreamPlugin({\n      workflows: pipedreamConfig,\n    }),\n  ],\n});\n\n// track an event\nanalytics.track('signed_up', { email: 'user@example.com' });\n```\n\nIn browser\n\n```html\n\u003cscript src=\"https://unpkg.com/analytics/dist/analytics.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/@hexlet/analytics-plugin-pipedream/dist/main.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var Analytics = _analytics.init({\n    app: 'my-app',\n    plugins: [\n      PipedreamPlugin({\n        workflows: pipedreamConfig,\n      }),\n    ],\n  });\n\n  Analytics.track('signed_up', { email: 'user@example.com' }); // track an event\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexlet%2Fanalytics-plugin-pipedream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexlet%2Fanalytics-plugin-pipedream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexlet%2Fanalytics-plugin-pipedream/lists"}