Swrve: Import Activity Data
Importing Swrve user activity data allows you to enrich your Lytics profiles and give you a more accurate view of your users' engagement.
Integration Details
- Implementation Type: Server-side.
- Implementation Technique: File based transfer.
- Frequency: Batch.
- Resulting data: Raw event data.
This integration utilizes the Amazon S3 API to import user data. Once the import is started the workflow will:
- Fetch the file selected in the configuration step from S3.
- Send data to the
swrve_activity
stream. - Schedule the next run of the import if the Keep Updated options is selected.
Fields
The following fields are included in the default mapping of the swrve_activity
stream:
Source Field | Lytics User Field | Description | Type |
---|---|---|---|
count(type) | swrve_currency_given_ct | Swrve Currency Given Count | int |
count(type) | swrve_event_ct | Swrve Event Count | int |
count(type) | swrve_iap_ct | Swrve IAP Count | int |
count(type) | swrve_purchase_ct | Swrve Purchase Count | int |
count(type) | swrve_session_end_ct | Swrve Session End Count | int |
count(type) | swrve_session_start_ct | Swrve Session Start Count | int |
device_id | swrve_device_id | Swrve Device ID | string |
device_name | swrve_device_name | Swrve Device Name | string |
game | swrve_game | Swrve Game | string |
max(epochms()) | swrve_last_purchase_ts | Swrve Last Purchase | date |
min(epochms()) | swrve_first_purchase_ts | Swrve First Purchase | date |
name | swrve_activity_name | Swrve Activity Name | string |
os | swrve_os | Swrve OS | string |
os_version | swrve_os_version | Swrve OS Version | string |
product_id | swrve_product_id | Swrve Product ID | string |
type | swrve_activity_type | Swrve Activity Type | string |
user | swrve_user_id unique id | Swrve User ID | string |
valuect(type) | swrve_activty_ct | Swrve Events | map[string]intsum |
Configuration
Follow these steps to set up and configure an import job for Swrve in the Lytics platform. If you are new to creating jobs in Lytics, see the Jobs Dashboard documentation for more information.
- Select Swrve from the list of providers.
- Select the Import Activity Data job type from the list.
- Select the Authorization you would like to use or create a new one.
- Enter a Label to identify this job you are creating in Lytics.
- (Optional) Enter a Description for further context on your job.
- Complete the configuration steps for your job.
- From the File input, select choose the file, or if this is a continuous import, choose the first file in a dated sequence to import. Listing files may take up to a couple minutes.
- (Optional) Select the Keep Updated checkbox to continuously run this import.
- (Optional) Toggle Show Advanced Options.
- (Optional) In the File Prefix text box, enter enter the file name prefix. You may use regular expressions.
- (Optional) From the Time of Day input, select time of day to complete the import each day.
- (Optional) From the Timezone input, select.
- Click Start Import.