-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
68 lines (41 loc) · 2.09 KB
/
README
File metadata and controls
68 lines (41 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
This plugin aims to ease the integration of mixpanel into a symfony project!
# Features:
- Bundles the javascript library
- Everything is configurable in yaml, app/mod/action levels
- Enables auto-tracking of all symfony actions and its parameters
- Allows to easily track an event and user properties
- Allows to easily set a name_tag for every event, so the user is always identified
- Some view-layer helpers
# How to Install/Configure:
## Get a mixpanel account, if you haven't got one
http://www.mixpanel.com
## Install the plugin
You can either download it (and extract it into plugins/) or install it through symfony's pear channel:
php symfony plugin:install buMixpanelPlugin --stability="alpha"
## Add buMixpanelFilter to your filters.yml file
# insert your own filters here
bu_mixpanel_plugin:
class: buMixpanelFilter
## Configure your project token in your app.yml file
all:
bu_mixpanel_plugin:
params:
token: insertYourTokenHere
## Publish the plugins assets
php symfony plugin:publish-assets
## Clear cache
php symfony cc
# How to use
After configuring as explained above, it should automatically track your symfony internal actions and parameters
Just go to your mixpanel project page to see the actions being registered in real-time.
If you want a better control of what is tracked and how, here's the main things you can do:
- Set the param "auto_tracking_enabled" to false in your app.yml
- Set the global "enabled" to false in a certain environemnt or module
- Register your event manually using $this->getMixpanelTracker()->addEvent($eventName,$eventProperties);
- Set user-level properties upon login using $this->getMixpanelTracker()->addSuperProperty($propertyName, $propertyValue);
# TODO:
- Add helper for mixpanel platform, to generate charts to be displayed, easily
- Allow backend invisible event tracking without javascript
- Allow events to be configured in the module.yml
- Integrate with sfGuard for optionally auto-registering user properties
- Get feedback