-
Notifications
You must be signed in to change notification settings - Fork 85
How to capture Analytics for your plugin
BuildFire provides a way for developers to track plugin views and user actions with minimal setup so they can retrieve all these analytical data later.
These events will be sent to our analytics server and then forwarded to the developer segment.io account which will be set by the developer. Our Intergration with segment.io, will allows developers to receive events at any of the endpoints supported by segment.io.
** Events will be also accessible to BuildFire, White Label owners and the app owner so it is very important NOT to use it to send sensitive information such as user passwords or anything that may violate users privacy.**
Views can be tracked using the trackView function:
arguments:
-
[event name]
: The name of the view you wish to track -
[meta data obj]
: Any extra information you would like to add to the user event (optional)
example:
buildfire.analytics.trackView('contact-us');
User actions, such as a button click, can be tracked by using the trackAction function:
arguments:
-
[event name]
: The name of the action you wish to track -
[meta data obj]
: Any extra information you would like to add to the user event (optional)
example:
buildfire.analytics.trackAction('add-entry', { totalEntries : myTotalEntries } );