Importing product data

  • Updated

Using the content interface, you can import the product catalog of your web shop directly into Optimizely Campaign. The products contained in the catalog are available when you create a mailing. In addition to the product name, you can also insert images, links, prices, and descriptions directly into the mailing. The product data import is usually done via a predefined CSV file, which is transferred daily via SFTP to the Optimizely Campaign server.

SFTP data transfer

The SFTP protocol is used for data transfer. To transfer data, you must connect to the Optimizely Campaign server using an authentication key. The shop integration must therefore support working with authentication keys. See Transferring files through SCP.

If you have a PHP-based shop system, you can for example use the phpseclib library.

Provide customer support with the file name so they can configure the respective imports in your client.

Create the folder structure based on client IDs. So you can connect a shop installation on which different web shops with different languages have been configured, using a SFTP account.

Structure of the CSV file

The CSV file has the following defined header structure:


Each product is written in one line. Columns for which no values are available in the shop system must still be empty and cannot be deleted. Also note the following information:

  • The columns id, name and category must be specified.
  • The value of the id column must be unique in the CSV file and identify the product.
  • In the category column, specify the category as a string and separate the hierarchies with #, for example men#shoes#summer.
  • Select UTF-8 as text encoding.
  • Remove HTML code or make sure that the HTML code is error-free.