Documentation / Product / Integrations / Swrve

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

This integration utilizes the Amazon S3 API to import user data. Once the import is started the workflow will:

  1. Fetch the file selected in the configuration step from S3.
  2. Send data to the swrve_activity stream.
  3. Schedule the next run of the import if the Keep Updated options is selected.


The following fields are included in the default mapping of the swrve_activity stream:

Source FieldLytics User FieldDescriptionType
count(type)swrve_currency_given_ctSwrve Currency Given Countint
count(type)swrve_event_ctSwrve Event Countint
count(type)swrve_iap_ctSwrve IAP Countint
count(type)swrve_purchase_ctSwrve Purchase Countint
count(type)swrve_session_end_ctSwrve Session End Countint
count(type)swrve_session_start_ctSwrve Session Start Countint
device_idswrve_device_idSwrve Device IDstring
device_nameswrve_device_nameSwrve Device Namestring
gameswrve_gameSwrve Gamestring
max(epochms())swrve_last_purchase_tsSwrve Last Purchasedate
min(epochms())swrve_first_purchase_tsSwrve First Purchasedate
nameswrve_activity_nameSwrve Activity Namestring
osswrve_osSwrve OSstring
os_versionswrve_os_versionSwrve OS Versionstring
product_idswrve_product_idSwrve Product IDstring
typeswrve_activity_typeSwrve Activity Typestring
userswrve_user_id unique idSwrve User IDstring
valuect(type)swrve_activty_ctSwrve Eventsmap[string]intsum


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.

  1. Select Swrve from the list of providers.
  2. Select the Import Activity Data job type from the list.
  3. Select the Authorization you would like to use or create a new one.
  4. Enter a Label to identify this job you are creating in Lytics.
  5. (Optional) Enter a Description for further context on your job.
  6. Complete the configuration steps for your job.
  7. 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.
  8. (Optional) Select the Keep Updated checkbox to continuously run this import.
  9. (Optional) Toggle Show Advanced Options.
    1. (Optional) In the File Prefix text box, enter enter the file name prefix. You may use regular expressions.
    2. (Optional) From the Time of Day input, select time of day to complete the import each day.
    3. (Optional) From the Timezone input, select.
  10. Click Start Import.