{"id":18337728,"url":"https://github.com/moosend/website-tracking-js","last_synced_at":"2025-04-06T05:31:36.274Z","repository":{"id":24240580,"uuid":"93664340","full_name":"moosend/website-tracking-js","owner":"moosend","description":"By installing the Moosend JS Tracking library you are can track page views, product views, add to cart events and successful purchases.","archived":false,"fork":false,"pushed_at":"2024-06-19T14:02:59.000Z","size":564,"stargazers_count":2,"open_issues_count":25,"forks_count":4,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-21T17:56:33.865Z","etag":null,"topics":["automations","javascript","library","tracking"],"latest_commit_sha":null,"homepage":"https://www.moosend.com/","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/moosend.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":"2017-06-07T18:00:22.000Z","updated_at":"2024-09-18T06:28:44.000Z","dependencies_parsed_at":"2024-11-05T20:24:06.195Z","dependency_job_id":null,"html_url":"https://github.com/moosend/website-tracking-js","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moosend%2Fwebsite-tracking-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moosend%2Fwebsite-tracking-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moosend%2Fwebsite-tracking-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moosend%2Fwebsite-tracking-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moosend","download_url":"https://codeload.github.com/moosend/website-tracking-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247440339,"owners_count":20939221,"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":["automations","javascript","library","tracking"],"created_at":"2024-11-05T20:12:07.511Z","updated_at":"2025-04-06T05:31:35.933Z","avatar_url":"https://github.com/moosend.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e   \n  \u003ca target=\"_blank\" href=\"https://www.moosend.com/\"\u003e\u003cimg width=\"250\" class=\"logo\" alt=\"moosend\" src=\"https://moosend.com/wp-content/themes/moosend_theme/images/moosend_logo_full.svg\" scale=\"0\"\u003e\u003c/a\u003e    \n\u003c/p\u003e    \n\n\u003cp align=\"center\"\u003e    \n  \u003ca href=\"https://travis-ci.org/moosend/website-tracking-js\"\u003e\u003cimg src=\"https://travis-ci.org/moosend/website-tracking-js.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e    \n  \u003ca href=\"https://www.npmjs.com/package/mootracker\"\u003e\u003cimg src=\"https://badge.fury.io/js/mootracker.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e    \n  \u003ca href=\"https://www.npmjs.com/package/mootracker\"\u003e\u003cimg src=\"https://poser.pugx.org/moosend/tracker/license.svg\" alt=\"License\"\u003e\u003c/a\u003e   \n\u003c/p\u003e\n#Global NPM packages\n  npm install typescript@1.5.0-alpha -g\n\n#Local NPM packages\n  npm install\n\n#NPM scripts\n  ##Test\n    To run tests first compile sources with npm script\n      npm run build-watch-tests\n    or directly\n      tsc --noImplicitAny --outDir compiled/ --module commonjs test/*.test.ts --watch -t es5\n\n    Then run tests\n      npm test\n\n  ##Demo\n    Demo consists of express server that serves to hosts. To run the demo you need\n    1. Add aliases to your hosts file\n      127.0.0.1 local.tracker.domain\n      127.0.0.1 local.client.domain\n    2. Bundle demo\n      npm run bundle-demo\n    3. Start demo server\n      npm run demo\n    4. Open browser at http://local.client.domain\n\n  ##Bundle\n    You can bundle js sources with npm script (that will produce dist/bundle.js)\n      npm run bundle\n    And you can bundle minified version (that will produce dist/bundle.min.js)\n      npm run bundle-min\n\n\n#Tracker API\nmoo.identify({ email: string, name?: string });\nmoo.track(action: string, { key: value });\nmoo.track(action: string, [{ key1: value1 }, { key2: value2 }]);\n\nmoo.trackLogin(); // Will send LOGIN event with no context\nmoo.trackPageView(); // Will send PAGE_VIEW event with { url: string }\n\n// Events known on server side\n\n// Will add item to order or increase the item count if already in order.\n// If there is no STARTED order it will be created\nmoo.track('ADD_TO_ORDER', [{ itemCode: string }, { itemPrice: number }]);\n\n// Will remove currently STARTED order and insert COMPLETED order\nmoo.track('ORDER_COMPLETED')\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoosend%2Fwebsite-tracking-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoosend%2Fwebsite-tracking-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoosend%2Fwebsite-tracking-js/lists"}