Skip to content

How to capture Analytics for your plugin

Daniel Hindi edited this page Dec 7, 2017 · 14 revisions

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.**


Tracking Views:

Views can be tracked using the trackView function:

buildfire.analytics.trackView([event name],[meta data obj]);

arguments:

  1. [event name]: The name of the view you wish to track

  2. [meta data obj]: Any extra information you would like to add to the user event (optional)

example:

buildfire.analytics.trackView('contact-us');


Tracking Actions:

User actions, such as a button click, can be tracked by using the trackAction function:

buildfire.analytics.trackAction([event name],[meta data obj]);

arguments:

  1. [event name]: The name of the action you wish to track

  2. [meta data obj]: Any extra information you would like to add to the user event (optional)

example:

buildfire.analytics.trackAction('add-entry', { totalEntries : myTotalEntries } );

Clone this wiki locally