Documentation / Product / Integrations / GIGYA

GIGYA: Import Users

Import GIGYA contacts and email subscriptions into Lytics to build a more complete view of your customers. You can import from full accounts and lite GIGYA (SAP Customer Data Cloud) accounts.

Integration Details

This integration utilizes the GIGYA APIs to import user data. Once the import is started the job will:

  1. Validate credentials by getting the user schema.
  2. Search for users that have been updated since the last import.
    1. Initial search request: SELECT * FROM accounts WHERE lastUpdatedTimestamp >= <last import date> ORDER BY lastUpdatedTimestamp LIMIT 10000, and openCursor = true.
    2. Page through results.
  3. Search for lite users that have been updated since the last import.
    1. Initial search request: SELECT * FROM emailAccounts WHERE lastUpdatedTimestamp >= <last import date> AND hasLiteAccount=true AND hasFullAccount=false ORDER BY lastUpdatedTimestamp LIMIT 10000, and openCursor = true.
    2. Page through results.
  4. Search for subscriptions that have been updated since the last import.
    1. Initial search request: SELECT * FROM emailAccounts WHERE subscriptions.<subscription name>.email.lastUpdatedSubscriptionState > <last import date>, and openCursor = true.
    2. Page through results.
  5. Ingest the data from the searches into the gigya_users stream.

Fields

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

Source FieldLytics User FieldDescriptionType
addressaddressAddressstring
birth_daybirth_dayBirth Daystring
birth_monthbirth_monthBirth Monthstring
birth_yearbirth_yearBirth Yearstring
citycityCitystring
countrycountryCountrystring
createdgy_user_createdGIGYA Profile Createddate
email(email)email unique idEmail Addressstring
emaildomain(email)emaildomainEmail Domainstring
facebook_idfbuid unique idFacebook User IDstring
first_namefirst_nameFirst Namestring
gendergenderGenderstring
google_idgoogle_id unique idGoogle IDstring
idgy_profile_id unique idGIGYA Distinct IDstring
instagram_idinstagram_id unique idInstagram IDstring
is_registeredgy_is_registeredGIGYA Is Registeredstring
last_logingy_user_last_loginGIGYA Profile Last Logindate
last_namelast_nameLast Namestring
last_updatedgy_user_updatedGIGYA Profile Updateddate
login_providergy_login_providerGIGYA Login Providerstring
map(subscription_name, double_optin-status)gy_subscription_optin_statusGIGYA Subscription Optin Statusmap[string]string
map(subscription_name, subscribed)gy_subscriptionsGIGYA Subscriptionsmap[string]bool
map(subscription_name, todate(modified))gy_subscription_modified_dateGIGYA Subscription Modified Datemap[string]time
site_idgy_site_idGIGYA Site IDstring
statestateStatestring
tobool("true")gy_lite_accountGIGYA Lite Accountbool
twitter_idtwuser_id unique idTwitter IDstring
twitter_nametwuser_screenname unique idTwitter usernamestring
zipzipZipstring

Configuration

Follow these steps to set up and configure an import job for Gigya in the Lytics platform. If you are new to creating jobs in Lytics, see the Jobs Dashboard documentation for more information.

  1. Select Gigya from the list of providers.
  2. Select the Import Audiences 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. (optional) In the Import Since text box, enter the date from which you want to import data using the YYYY-MM-DD format. If left blank, Lytics will import all available data.
  8. (optional) From the Extended Data Fields input, select additional data fields to import to Lytics. Basic profile data will automatically be imported.
  9. (Optional) Toggle Show Advanced Options. Select the Keep Updated checkbox to run this import hourly.
  10. Click Start Import.

gigya integration import config