Have a question?

Import/Export API

Important: Read the introduction before proceeding.

Import API

The Import API allows importing a list of visits into woopra. The visits can then be seamlessly accessed in reporting, visitor profiles, schemas, labels…

Details

As described in the HTTP tracking API, events can be pushed into woopra with custom timestamps, simply by adding a unix timestamp (in Milliseconds) to the tracking request.

Example:


http://www.woopra.com/track/ce/

?host=mywebsite.com
&response=json
&cookie=AH47DHS5SF182DIQZJD
&timeout=300000
&cv_username=John+Smith
&cv_email=john@mail.com
&event=purchase
&ce_amount=149.95 
&timestamp=1381968226977

Important:

  • The imported data will be permanently written to the system, and the operation cannot be rolled back.

Export API

the Export API allows exporting a list of visits from woopra.

Details

The data export API allows exporting visits on a daily basis only. The downloaded file format is line-separated ( \n ) visit JSON strings.
To export, a GET request has to be sent to https://www.woopra.com/rest/export/auth/logs

Parameters

Name Description
website the tracking instance name as registered in Woopra
day the day of the log file, having the date format yyyy-MM-dd
access-id a valid app id (from your members area access keys)
access-secret a valid access secret (from your members area access keys)

Example:


https://www.woopra.com/rest/export/auth/logs

?website=mybusiness.com
&day=2014-01-01
&access-secret=Z6iwneq...
&access-id=NI09...

Output:

{"date":"2014-03-20","country":"US","os":"Win","city":"Los Angeles","ip":"99.141.29.9","language":"English","pid":"rpE...
{"date":"2014-03-20","country":"UK","os":"Win","city":"London","ip":"99.188.29.9","language":"English","pid":"nXe...
{"date":"2014-03-20","country":"US","os":"Mac","city":"San Francisco","ip":"101.11.9.18","language":"English","pid":"nTu...
...

Need any help? Contact our Data Jedis