The Variables tab allows you to log information that is unique to a specific conversion. First of all, select your tracker type:
![]()
This selection configures the way that data is passed from the page and into the conversion. The options in the dropdown are:
- Track JavaScript variables: this setting means that the variables are set in the confirmation page as JS variables ( var = 'Test value'; )
- Track JavaScript variables (backwards compatible, escaping needed): this setting means that the JS values must be URL encoded ( var = 'Test%20value'; ). It is provided for backwards compatibility only.
- Track HTML elements using DOM: this setting will parse the confirmation for an HTML element with the specified name. It will take the value from that element automatically.
- Custom JS code: this setting allows you to use your own custom JS code to pass the variable's value into the conversion.
Next, you have the option to add one or more variables:
![]()
The available fields are:
- Variable Name: the name of the variable should correspond with the type of variable you want to track.
- Description: enter a description of your choice for this variable.
- Date Type: the type of value to be passed on, i.e. String for text strings, Numeric for numeric values, Date for specific dates. The advantage of setting the data type is that it allows the system to perform appropriate operations on the data, e.g. summing numeric values or joining strings.
- Purpose: this field tells OpenX what to use this data for. If you are tracking the amount of a sale, for example, then Basket value should be selected.
- Reject if empty?: if no value is passed in for this variable, don't use this value in calculations.
- Dedup conversions?: if enabled, OpenX will use this value to de-duplicate conversions. The usual usage is to pass in a sale number, and OpenX will ignore multiple conversions with the same sale number.
- Variable hidden to: hide the variable to no, some or all websites. Once you are happy with your variables, hit Save changes.




