Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nmoinvaz/nsis-mp
MixPanel Analytics for NSIS
https://github.com/nmoinvaz/nsis-mp
Last synced: 21 days ago
JSON representation
MixPanel Analytics for NSIS
- Host: GitHub
- URL: https://github.com/nmoinvaz/nsis-mp
- Owner: nmoinvaz
- Created: 2012-10-25T06:13:28.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-15T07:17:06.000Z (over 11 years ago)
- Last Synced: 2024-05-02T01:05:32.040Z (6 months ago)
- Homepage:
- Size: 137 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MixPanel Analytics for NSIS
This script will allow you to add mixpanel event tracking into your NSIS installer. It is useful for tracking installer based events such as the number of successful installs that occured, or the number of offers accepted, or the number of users who clicked the donate button.
Specify the include at the top of your nsh script:
```
!include "mp.nsh"
```To track an event use the following
```
!insertmacro MixPanelAnalytics "YOUR_TOKEN" "Event" "Action"
```Example events to track:
```
Function .onInit
!insertmacro MixPanelAnalytics "YOUR_TOKEN" "Install" "Started"
FunctionEnd
Function .onInstFailed
!insertmacro MixPanelAnalytics "YOUR_TOKEN" "Install" "Failed"
FunctionEnd
Function .onInstSuccess
!insertmacro MixPanelAnalytics "YOUR_TOKEN" "Install" "Success"
FunctionEnd
Function .onGUIEnd
!insertmacro MixPanelAnalytics "YOUR_TOKEN" "Install" "Ended"
FunctionEndFunction un.onInit
!insertmacro MixPanelAnalytics "YOUR_TOKEN" "Uninstall" "Started"
FunctionEnd
Function un.onUninstFailed
!insertmacro MixPanelAnalytics "YOUR_TOKEN" "Uninstall" "Failed"
FunctionEnd
Function un.onUninstSuccess
!insertmacro MixPanelAnalytics "YOUR_TOKEN" "Uninstall" "Success"
FunctionEnd
Function un.onGUIEnd
!insertmacro MixPanelAnalytics "YOUR_TOKEN" "Uninstall" "Ended"
FunctionEnd
```
This script requires the use of [logiclib](http://nsis.sourceforge.net/LogicLib) script and [inetc](http://nsis.sourceforge.net/Inetc_plug-in) and [base64](https://github.com/nmoinvaz/nsis-base64) plugins. Tested only with the non-Unicode version of NSIS.