1. Create a new app in Quixxi Portal using Add New button.
  2. In "Create your app" dialog give a name of the 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 Web as platform and check “Analytics” in Select modules options.
  5. Give a domain name for your application and hit "Start Packaging".
  6. Now the Package window shows you the CDN url of Quixxi Analytics and Init method of Quixxi Analytics with appguid and appkey.
    Copy and paste those in your html pages that need to be tracked.
  7. Add latest JQuery reference in your html pages where QuixxiAnalytics integrated.

Initialization

        In each page we want to track, include the following code at the end of the <head> section


<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;"><script>
      Quixxi.init(appguid, appkey,isLocation);
</script></span></span>



        Appguid,appkey - values can be found in readme.txt file.
        isLocation - a boolean value,if true - SDK will collects the user’s coordinates.

User registration

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


<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">Quixxi.q.push(['RegisterUser',{
      "Email": "some@domain.com"
}]);</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.q.push(['SendEvent',{
                 "Event": "test_category",
                 "Details": "test_value",
                 "Event_Detail" : "test_additional_value",
                 "Event_Object" : { }
}]);</span></span>



Field
Value
Required
Description
Event
String
Yes
Category of the event
Details
String
Yes
Value of the event
event_Details
String
Yes
Additional value
Event_Object
JSON obj
Optional
A json object containing more details about the event


Example



<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">Quixxi.q.push(['SendEvent',{
     "Event": "Purchase",
     "Details": "Item Purchased",
     "Event_Detail" : "Shoe",
     "Event_Object" : 
         {
         "item name": "Reebok Runner",
         "brand": "Reebok",
         "price": 25, 
         "discount": "N/A"
         }
}]);</span></span>