Skip to content
Java Python JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
assets
dist
documentation
example
hooks
libs
platform
src
.DS_Store
.gitignore
CHANGELOG.txt
LICENSE
LICENSE.txt
README.md
build.properties
build.xml
manifest
timodule.xml

README.md

Titanium-Android-Count.ly(old version)

For new version of the module, Please click here

Countly is an innovative, real-time, open source mobile analytics application. It collects data from mobile phones, and visualizes this information to analyze mobile application usage and end-user behavior. There are two parts of Countly: the server that collects and analyzes data, and mobile SDK that sends this data (for iOS & Android).

Countly Server;

Other Countly SDK repositories;

Please note that this Module is under development.

Installation

Register your module with your application by editing tiapp.xml and adding your module.

<modules>
<module platform="android">ly.count</module>
</modules>

Usage

Start Count.ly

Start Tracking

var countly = require('ly.count');
countly.countInit("http://YOURSERVER","API_KEY");

Record Events

Fields

  • name : Name of the event to track
  • (example - Track clicks on the help button "clickedHelp" )
  • count : Number to increment the event in the db
  • (example - User purchases item increment by 1 )
  • segmentation : Categorization of the event
  • (example - User is from USA and uses an iPhone 4S so the segmentation will be {device:"iPhone 4S", country:"USA"} )

Simple Event


//Example: countly.sendEvent(name,count);

countly.sendEvent("HomeButton",1);

Event With Segmentation


// Example: countly.sendAdvancedEvent(name, segmentation, count);

var segmentation = {"buttonName": "HomeButton",
"buttonLocation": "TopBar",
};

countly.sendAdvancedEvent("HomeScreen", segmentation, 1);

Something went wrong with that request. Please try again.