Localytics update.
[UPDATED] Localytics update. [ADDED] When sendInfo is enabled, set the user identifier on Localytics.
This commit is contained in:
39
External/Localytics/WebserviceConstants.h
vendored
Executable file → Normal file
39
External/Localytics/WebserviceConstants.h
vendored
Executable file → Normal file
@@ -1,21 +1,23 @@
|
||||
// WebserviceConstants.h
|
||||
// Copyright (C) 2012 Char Software Inc., DBA Localytics
|
||||
//
|
||||
// Copyright (C) 2013 Char Software Inc., DBA Localytics
|
||||
//
|
||||
// This code is provided under the Localytics Modified BSD License.
|
||||
// A copy of this license has been distributed in a file called LICENSE
|
||||
// with this source code.
|
||||
//
|
||||
// with this source code.
|
||||
//
|
||||
// Please visit www.localytics.com for more information.
|
||||
|
||||
// The constants which are used to make up the JSON blob
|
||||
// To save disk space and network bandwidth all the keywords have been
|
||||
// abbreviated and are exploded by the server.
|
||||
// abbreviated and are exploded by the server.
|
||||
|
||||
/*****************
|
||||
* Upload Header *
|
||||
*****************/
|
||||
#define HEADER_CLIENT_TIME @"x-upload-time"
|
||||
#define HEADER_INSTALL_ID @"x-install-id"
|
||||
#define HEADER_CLIENT_TIME @"x-upload-time"
|
||||
#define HEADER_INSTALL_ID @"x-install-id"
|
||||
#define HEADER_CLIENT_VERSION @"x-client-version"
|
||||
#define HEADER_DELAY_SESSION @"ll-first-session"
|
||||
|
||||
/*********************
|
||||
* Shared Attributes *
|
||||
@@ -38,7 +40,7 @@
|
||||
// PARAM_DATA_TYPE => "h" for Header
|
||||
// PARAM_ATTRIBUTES => dictionary containing Header Common Attributes
|
||||
#define PARAM_PERSISTED_AT @"pa" // Persistent Storage Created At. A timestamp created when the app was
|
||||
// first launched and the persistent storage was created. Stores as
|
||||
// first launched and the persistent storage was created. Stores as
|
||||
// seconds from Unix epoch. (int)
|
||||
#define PARAM_SEQUENCE_NUMBER @"seq" // Sequence number - an increasing count for each blob, stored in the
|
||||
// persistent store Consistent across app starts. (int)
|
||||
@@ -62,8 +64,11 @@
|
||||
#define PARAM_DEVICE_MODEL @"dmo" // Device Model
|
||||
#define PARAM_DEVICE_OS_VERSION @"dov" // Device OS Version
|
||||
#define PARAM_NETWORK_CARRIER @"nca" // Network Carrier
|
||||
#define PARAM_OPT_VALUE @"out" // Opt Out (boolean)
|
||||
#define PARAM_OPT_VALUE @"out" // Opt Out (boolean)
|
||||
#define PARAM_DEVICE_MEMORY @"dmem" // Device Memory
|
||||
#define PARAM_IDENTIFIERS @"ids" // Identifiers (dictionary)
|
||||
#define PARAM_BIRTH_TIME @"b" // Birth time (Since epoch)
|
||||
#define PARAM_TIMEZONE_OFFSET @"tz" // Device offset from GMT in seconds
|
||||
|
||||
/*****************
|
||||
* Session Start *
|
||||
@@ -101,6 +106,7 @@
|
||||
// PARAM_ATTRIBUTES => dictionary containing attributes for this event as key-value string pairs
|
||||
#define PARAM_EVENT_NAME @"n" // Event Name, (eg. 'Button Click')
|
||||
#define PARAM_REPORT_ATTRIBUTES @"rattrs" // Attributes used in custom reports
|
||||
#define PARAM_VALUE_NAME @"v" // Added customer value for an event, such as revenue
|
||||
|
||||
/********************
|
||||
* Application flow *
|
||||
@@ -111,4 +117,17 @@
|
||||
// PARAM_CLIENT_TIME
|
||||
#define PARAM_SESSION_START @"ss" // Start time for the current session.
|
||||
#define PARAM_NEW_FLOW_EVENTS @"nw" // Events and screens encountered during this session that have NOT been staged for upload.
|
||||
#define PARAM_OLD_FLOW_EVENTS @"od" // Events and screens encountered during this session that HAVE been staged for upload.
|
||||
#define PARAM_OLD_FLOW_EVENTS @"od" // Events and screens encountered during this session that HAVE been staged for upload.
|
||||
|
||||
/************************
|
||||
* Partner attributions *
|
||||
***********************/
|
||||
#define FB_ATTRIBUTION @"fb_attrib_first" // Facebook attribution cookie
|
||||
#define FB_ATTRIBUTION_TIME @"fb_attrib_first_date" // Time original attribution cookie was collected
|
||||
#define FB_ATTRIBUTION_CURRENT @"fb_attrib_current" // Facebook attribution cookie
|
||||
#define FB_ATTRIBUTION_CURRENT_TIME @"fb_attrib_current_date" // Time original attribution cookie was collected
|
||||
#define FB_DEVICE_ID @"dpid" // Device unique identifiers
|
||||
#define FB_DEVICE_ID_TYPE @"dpid_type" // Either UDID or ADID (advertisingIdentifier)
|
||||
#define FB_INSTALL_ID @"install_id" // Device install ID
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user