1. Create a new app in Quixxi Portal using Add New button.
  2. In "Create your app" dialog give a name of your application and click Continue.
  3. Click the newly created app and choose "Control" in header tab and choose Package in left side menu.
  4. Click "Add Platform" and choose .Net UWP as platform and check “Analytics” in the Select module option.
  5. Give a proper package name for your application and hit "Start Packaging".
  6. Now Quixxi will pack Analytics framework and notify you once it gets completed.
  7. Click "Download Demo" to receive a complete demo application which quickly showcases the features of Analytics framework.
  8. Click "Download Library" to integrate Quixxi Analytics in your existing UWP project. Let’s see how to do this more in depth.


Editing your project.json file

        First of all edit your project.json file and be sure to include the following two lines among your dependencies:


<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">"dependencies": {
  "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2",
  "quixxi.analytics.uwp": "1.0.0-ci-20170215-073935"
},</span></span>


        In this way, every time you will reload the NuGet packages needed for your project and you will automatically work with all the latest updates available for our library. Our NuGet package is available here too.


Initialization

        Please instantiate your QuixxiAnalytics object in your app’s launcher class as follows


<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">private readonly string appGUID = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
private readonly string appKEY = "YYYYYYYYYYYYYYYYYYYY";
QuixxiAnalyticsLibrary.QuixxiAnalytics quixxi;
quixxi = new QuixxiAnalyticsLibrary.QuixxiAnalytics(appGUID, appKEY);
                            
-- appGUID and appKEY of your app are two string values provided by the Developer's_readme.txt file.</span></span>


User/Device registration

     For registering the user and the device details with Quixxi, you need to call the following callback after QuixxiAnalytics initialization:


<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">quixxi.PostUserRegistrationData();</span></span>


Events

    In order to upload user events you can use the following callback:


<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">quixxi.PostUserEventsData(event_name, event_value);
-- event_name : a string to identify your event.
-- event_value : a string containing your event value</span></span>



<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">Diagnostics
Caught exceptions can be pushed to Quixxi with the following callback:

</span></span>



<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">try
{
      // your code here
}
catch(Exception ex)
{
      quixxi.PostExceptionEventsData(ex);
}</span></span>