Periodic exports
In the platform, you can setup daily exports to your server.
#
ConfigurationGo to:
- Settings
- Account
- Periodic exports
- + New
There are two modes:
- Specific export: outputs a daily CSV file with either
- all participations for the given campaigns & contents (you can select optins contained in those resources to append their values to each line)
- all selected user optins
After that, pick the BeOp resources you want to export.
- Global export: outputs a daily ndJSON file with all the participations and all the optins from all your creatives
#
ConstraintsFor the moment,
- Specific exports are only in the CSV format, and are transferred to your distant server using SFTP
- Global exports are only in the ndJSON format, and are transferred to your bucket on Google Cloud Storage (GCS). We have a help page if you're unsure about your credentials key and bucket name.
#
Specific exports#
File namingEvery day, a new CSV file will arrive in the configured directory on your server.
The file will be named as follows:
TYPE
:crm-optin
orcrm-participation
NAME
: Slugified name (e.g.My export
will becomemy-export
)YYYYMMDD
: the current dateUUID
: a random ID
As you can chose to run multiple exports every day, we recommend that you pick a different path for each. Don't worry if it's not the case, the random ID will ensure there's no name clash so that all the data is correctly written!
⚠️ As rights strategies can be very different from one case to the other, we will not create the directory, it will need to exist prior to the export.
#
File contentsThe CSV file will start with the following fixed columns:
email
(optional) stringphone
(optional) stringfirstname
(optional) stringlastname
(optional) stringgender
(optional) stringbirthdate
(optional) stringaddress-line-1
(optional) stringaddress-line-2
(optional) stringaddress-zip-code
(optional) stringaddress-city
(optional) stringaddress-country
(optional) stringcreative-id
stringcreative-name
stringcampaign-id
(optional) stringcampaign-name
(optional) string
And will end with one column per selected optin, named like the optin:
OPTIN_NAME
(e.g.My Newsletter
): (optional)true
if the user opted in
#
Global exports#
File namingEvery day, a new compressed ndJSON file will arrive in the configured directory on your server.
The file will be named as follows:
YYYY-MM-DD
: the current dateusername
: your username
#
File contentsA newline delimited JSON is a simple text file where each line is a valid json value, here each line corresponds to a participation.
Note that if any text value contains a newline character (\n
), the latter is escaped (\\n
) so that the remainder of the json is not confused with an actual new json entry on a new line. \\n
should be handled transparently by any standard json parser.
Each participation json, if one were to expand it on multiple lines for better readability, has the following structure: