No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Merge branch 'master' of https://github.com/TinyStuff/TinyInsights Aug 29, 2018
.gitignore tiny instights core architecture Feb 26, 2018
LICENSE Initial commit Sep 5, 2017
README.md Updated documentation Jul 4, 2018

README.md

TinyInsights

Build status

build status

About

The idea behind TinyInsights is to build a cross platform library to use with your favorite Analytics provider. Right now there are a providers for AppCenter and Google Analytics. And you are of course welcome to contribute with your favorite provider.

Get started

Install the Nuget package for the provider you want to use in the platform project, in other projects use the TinyInsights package.

For Azure App Center install the package TinyInsights.AppCenter in your platform projects.

Ìnstall-Package TinyInsights.AppCenter

For other projects, you can install just the TinyInsights package.

Ìnstall-Package TinyInsights

Configure TinyInsights

var appCenterProvider = new AppCenterProvider(iOSKey, AndroidKey, UWPKey)

TinyInsights.Configure(appCenterProvider);

When multiple providers will be available you can use them simultaneously, just use configure for all of the providers.

TinyInsights.Configure(appCenterProvider, provider 2, provider3);

Track errors

catch(Ecception ex)
{
     await TinyInsights.TrackErrorAsync(ex);
}

//with properties
var properties = new  Dictionarty<string, string>();
properties.Add("MyFirstProperty", "MyFirstValue");
properties.Add("MySecondProperty", "MySeconndValue");

catch(Ecception ex)
{
     await TinyInsights.TrackErrorAsync(ex, properties);
}

Track page views

await TinyInsights.TrackPageViewAsync("SuperCoolView");

//with properties
var properties = new  Dictionarty<string, string>();
properties.Add("MyFirstProperty", "MyFirstValue");
properties.Add("MySecondProperty", "MySeconndValue");

await TinyInsights.TrackPageViewAsync("SuperCoolView", properties);

Track custom events

await TinyInsights.TrackEventAsync("SuperCoolEvent");

//with properties
var properties = new  Dictionarty<string, string>();
properties.Add("MyFirstProperty", "MyFirstValue");
properties.Add("MySecondProperty", "MySeconndValue");

await TinyInsights.TrackEventAsync("SuperCoolEvent", properties);