{"id":16087176,"url":"https://github.com/newapplesho/mixpanel-smalltalk","last_synced_at":"2025-04-11T20:42:47.410Z","repository":{"id":86446265,"uuid":"55324414","full_name":"newapplesho/mixpanel-smalltalk","owner":"newapplesho","description":"Pharo Smalltalk Mixpanel Client Library","archived":false,"fork":false,"pushed_at":"2019-04-16T08:36:22.000Z","size":43,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T16:51:28.109Z","etag":null,"topics":["mixpanel","pharo","smalltalk"],"latest_commit_sha":null,"homepage":"","language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/newapplesho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-04-03T01:36:26.000Z","updated_at":"2019-01-03T04:30:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb9ea950-afda-44bd-b9c6-30434b63ec26","html_url":"https://github.com/newapplesho/mixpanel-smalltalk","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newapplesho%2Fmixpanel-smalltalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newapplesho%2Fmixpanel-smalltalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newapplesho%2Fmixpanel-smalltalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newapplesho%2Fmixpanel-smalltalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/newapplesho","download_url":"https://codeload.github.com/newapplesho/mixpanel-smalltalk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248479471,"owners_count":21110894,"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":["mixpanel","pharo","smalltalk"],"created_at":"2024-10-09T13:28:31.878Z","updated_at":"2025-04-11T20:42:47.385Z","avatar_url":"https://github.com/newapplesho.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mixpanel-smalltalk [![Build Status](https://travis-ci.org/newapplesho/mixpanel-smalltalk.svg?branch=master)](https://travis-ci.org/newapplesho/mixpanel-smalltalk)\r\n[Mixpanel](https://mixpanel.com) Pharo Smalltalk Client Library\r\n\r\n## Supported Smalltalk Versions\r\n[Pharo Smalltalk](http://pharo.org/) 4.0, 5.0, 6.0, 6.1\r\n\r\n## Installation\r\n\r\n```smalltalk\r\nMetacello new\r\n    baseline: 'Mixpanel';\r\n    repository: 'github://newapplesho/mixpanel-smalltalk/pharo-repository';\r\n    load.\r\n```\r\n\r\n## How to use\r\n\r\n### Setup\r\n\r\n```smalltalk\r\n\"Mixpanel project token, PROJECT_TOKEN\"\r\nMixpanelSettings default token:'PROJECT_TOKEN'.\r\n```\r\n\r\n### Sending events\r\n\r\n```smalltalk\r\ntracker := MixpanelTracker new.\r\ntracker track:'Sent Message'.\r\n```\r\n\r\n```smalltalk\r\ntracker := MixpanelTracker new.\r\njson := NeoJSONObject new.\r\njson at:'Programming language' put:'Pharo Smalltalk'.\r\njson at:'version' put:'4.0'.\r\ntracker track:'Sent Message' properties: json.\r\n```\r\n\r\n```smalltalk\r\ntracker := MixpanelTracker new.\r\njson := MixpanelEngagementJsonObject new.\r\njson browser:'Safari'.\r\njson os:'Mac'.\r\njson referrer:'http://www.sorabito.com/'.\r\njson currentUrl:'https://allstocker.com/'.\r\n\" XXXX.XXXX.XXXX.XXXX is ip address. \"\r\ntracker track:'Sent Message' properties: json ip:'XXXX.XXXX.XXXX.XXXX'.\r\n```\r\n\r\n### Managing user identity\r\n\r\nThe Mixpanel library will assign a default unique identifier (we call it \"distinct_id\") to each unique user who comes to your website.\r\n\r\n```smalltalk\r\ntracker := MixpanelTracker new.\r\n\"distinct_id 13793\"\r\ntracker identify:'13793'.\r\ntracker track:'Sent Message'.\r\n```\r\n\r\n### Storing user profiles\r\n\r\n```smalltalk\r\ntracker := MixpanelTracker new.\r\ntracker identify:'13793'.\r\npeople := tracker people.\r\njson := MixpanelPeopleJsonObject new.\r\njson firstname:'Sho'.\r\njson lastname:'Yoshida'.\r\njson at:'Favorite programming language' put:'Smalltalk'.\r\npeople setUserProfiles: json.\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewapplesho%2Fmixpanel-smalltalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewapplesho%2Fmixpanel-smalltalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewapplesho%2Fmixpanel-smalltalk/lists"}