Offline Conversions

VWO SDK allows you to track conversions using track API. There could be scenarios when you would like to track conversions without using the SDK.

To understand this in detail, let's take an example, where you have your own centralized data-storage service which stores the information of all the events. Whenever a conversion happens at your application, you store the data in the storage service but the integrated tools like VWO do not know about this conversion. Let's assume you do not prefer real-time syncing of this data with VWO and therefore, you run a cron job at the end of the day to sync conversions data with VWO. To achieve this, you would want an HTTP API to send the conversions data of all the users who became part of the campaign back to VWO.

VWO offers an endpoint that you can use to mark a conversion for a particular user who became part of the campaign earlier, by calling it with the required parameters.

Endpoint Details

Endpoint - https://dev.visualwebsiteoptimizer.com/server-side/track-goal

Query Parameters

Name

Description

Data Type

account_id

  • Required_

VWO Account ID

Number
Example: 123456

experiment_id

  • Required_

ID of the running Mobile campaign

Number
Example: 123

sId
Required

Session ID ie. current UNIX timestamp

Number
Example: 1626431681

u
Required

UUID v5

String
Example: 5d7c94a905a54ae0ab3d6221c8f76f1d

combination
Required

The variation ID assigned to the User which he became part of the campaign(can be extracted from the detailed report CSV)

Number
Example: 2(Variation-1), 1(Control), 10, etc.

goal_id

  • Required_

The goal ID you want the conversion data to be associated with.

Number
Example: 201

env
Required for env-level reporting

SDK Key

Alphanumeric
Example: 11041d99974c0d637e603bbbcfe64c99

random
Required

A unique random number to bust the caching

Number | Double
Example: 0.25227311885823933

ap
Required

VWO Platform

server

sdk
Optional

Name of the SDK

Example: vwo-node-sdk

sdk-v
Optional

Version of the SDK used

Example: 1.18.0

📘

Retrieving Data for the Endpoint

Please refer to the Integrations section inside the SDK Reference to know how you can get u, combination, and experiment_id. For example: you can refer Node.js Integrations section.

Example Usage

https://dev.visualwebsiteoptimizer.com/server-side/track-goal?experiment_id=84&combination=1&sId=1626431508&u=4EB8C94E0DE95A609C5811B8A176F72E&sdk=vwo-node-sdk&sdk-v=1.17.2&env=11041d99974c0d637e603bbbcfe64c99&account_id=3000204&random=0.6871404163737733&ap=server&goal_id=242&

References

  1. Download the detailed report of a campaign
  2. Integrating VWO with Google Cloud Storage
  3. Integrating VWO with Amazon S3