and Laravel

A new (and optional) internal feature that's coming soon in Cachet is anonymous usage tracking. This will allow us to see how often Cachet is deployed to Heroku, how many incidents and components are created etc. (previously is the best way of implementing tracking once. For example, we want to use GoSquared, Google Analytics and potentially other services to examine how popular Cachet is and how it's used.

To make it easier for us to implement tracking, I created a new Laravel package simply named Laravel-Segment which wraps the PHP library by Segment into a service provider and facade. It'll immediately initialise the library for you too, so you don't need to worry about that.

It's as simple as:

  1. Installing the library.
  2. Publishing the configuration file.
  3. Setting your write key in the config.
  4. Using it as you would the default PHP library.

comments powered by Disqus