Import event data seamlessly from third-party SFTP clients to the Blueshift SFTP server. Once connected, you can upload event data in CSV format from your SFTP location, either as a one-time activity or on a recurring basis using the scheduler.

Prerequisites

  • Prepare the event data for import and upload it to your SFTP location. Click here for more information on events.
  • Set up Blueshift integration with your SFTP location and configure at least one adapter. Ensure you have your SFTP details ready. For setup instructions, refer to SFTP Integration Setup.

Starting your event import journey

  • Navigate to Events: Go to Customer Data > Events in the left navigation bar.
  • Open the Import Menu: Click the Import Events button at the top of the Events page.
Events-Import-Index.png
  • Select a Data Source: Choose your preferred data source from the available options.
Events-Import-Source.png

Proceed with the selected data source to configure your import settings.

Left-side panel overview

  • Source: Displays the method of data upload. Example: Direct File Upload.
  • Destination:
    • Specifies the target location for the data. Example: Events.
    • Requires selecting an event under Select Event (mandatory field).
  • Trigger Campaigns: An optional checkbox to activate campaigns based on imported event data.
  • Notification Preferences:
    • To: Email IDs to receive task notifications.
    • CC: Additional recipients for notifications.
    • Settings:
      • Notify - Any Status: Sends notifications for all task statuses.
      • Notify - If more than [X]% of records fail, send alerts based on a failure threshold, e.g., 70% of records fail.
Events-Import-Left-Panel.png

Source configuration for SFTP upload

  • Select an Adapter: Choose the configured SFTP adapter from the dropdown.
  • Enter File Path: Provide the filename or file path (along with the file name).
  • Information Displayed:
    • Host Address: Displays the SFTP server's address.
    • Destination Path: Shows the folder path on the SFTP server.
    • Complete File Path: Auto-generates based on the destination and file name.
  • Click Continue to proceed.

Events-Import-SFTP-Source.png

Import file settings

  • Format (Mandatory): Choose from CSV or JSONL.
  • Encoding (Mandatory): Options include:
    • Unicode (UTF-8, UTF-16, UTF-16 Little Endian, UTF-16 Big Endian)
    • Western Europe (ISO-8859-1).
  • Delimiter (Mandatory): Options include:
    • Comma (,), Tabs (\t), Pipe (|), Semicolon (;)
    • Record Separator (ASCII 30), Unit Separator (ASCII 31), Others (customizable).
  • Click Continue to proceed.
Events-Imports-File-Settings.png

Data configuration & validation

  • Sample Data: Displays 10 records fetched from the source to assist in field mapping.
  • Field Mapping:
    • Map the Source Attribute Name to the corresponding Destination Attribute Name and specify the Destination Data Type.
    • Mapping Instructions:
      • Only columns mapped to a destination attribute will be imported.
      • Map Floating point numeric data types from the source to Decimal in Blueshift.
      • Example: For events like purchase, add_to_cart, wishlist, or view, map a column to product_ids (required for events interacting with product catalogs).
      • Ensure one column is mapped to a customer identifier, such as customer_id, email, my_custom_id, cookie, device_id, or my_external_id.
Events-Imports-File-Config-With-Date-Time-Format.png

Data Quality Check:

  • Use Check Data Quality to validate field mappings.
  • View data quality percentages, errors, and hints for corrections in the modal.
  • Adjust mappings as needed.
Event-Imports-Data-Quality.png

Test Run:

  • Click Test Run to validate with up to 10 records.
  • The modal displays source data alongside mapped JSON.
  • Update mappings and re-run tests if necessary.
Event-Imports-Test-Run.png
  • Next Steps: Address all validation issues and click Continue to proceed with the import.

Additional configuration

  • Save Event (Checked by default): Uncheck if you don’t want to use event activity for segmentation.
  • Update Customer Attributes (Checked by default):
    • Uncheck if custom attributes in the event shouldn’t be updated on the customer profile.
    • Identifier attributes will still be updated.
  • Update Catalog Activity (Checked by default): Uncheck if you don’t want catalog activities to be used in segmentation.
  • Update Transaction Events (Checked by default): Uncheck if you don’t want transaction event data to be updated.
  • Allow Blank Event Attributes (Unchecked by default): Select to include blank attributes in the event payload.
  • Enable Goal Events Tracking (Checked by default): Uncheck if you don’t want to attribute the event to any campaign.
Event-Imports-Additional-Config.png
  • Save Products for Recommendations (Unchecked by default):
    • Select to save product interactions for generating recommendations.
    • Product Saving Mode (opens when selected):
      • Replace Products: Replace previous product interactions.
      • Append Products: Add new interactions without removing existing ones.
      • Add to Timeline: Save interactions in chronological order.
Event-Imports-Additional-Config-Save-Products.png
  • Click Continue to proceed to the next step.

Select date and timezone format for import

  • Select the appropriate format from the Source Date Format dropdown, or leave it blank to use ISO 8601.
  • Select the appropriate timezone from the Source Timezone dropdown, or leave it blank to use UTC.
Imports-Date-Time-Format.png

Scheduling and launching the import task

  • Select the Start Date using the date picker.
  • Check 'Is it a recurring data import?' to enable recurring imports.
  • Choose when the task ends:
    • 'Never' for an indefinite schedule.
    • 'At some time' to set an End Date.
  • Set the execution frequency (e.g., every 15 minutes).
    • Scheduling options: Minutes, Hourly, Daily, Weekly, and Monthly.
Events-Import-DB-Schedule.png
  • Review the setup and the top right corner of the screen:
    • Click the Save button to save the task.
    • Click the Launch button to start the task.
Events-Import-Save-Launch.png

View task status

The status of each import task is displayed on the Event Imports page, providing a clear overview of the task's current state and key details like records processed and update frequency.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.