Configuration parameters
Parameter | Type | Purpose |
|---|---|---|
|
| Your Thanks-provided partner id |
|
| The message to display on the Thanks splash screen. |
|
| Providing a HTML element here will enable the embedded Thanks widget (as opposed to the pop-up style widget). The embedded widget will be loaded into the provided element. If using multiple slots on a single page, an array of HTMLElements should be passed. |
|
| Defines a size constraint for a embedded block. |
|
| The customer email. This is hashed and then used for ad matching, and in cases where the customer must be sent a communication we can use it for autofill. Note: if this field is included then |
|
| The pre-hashed version of the customer email. Used only to exclude/include the customer from ads they have seen before. |
|
| Allows Thanks to store information on publisher's site. |
|
| A list of PII subjects that you would like to opt in to. This provides a backwards compatible way for us to introduce new subjects. |
|
| A callback to handle PII requests. Note: this field is required if a field like customer email is included. See below for an example payload and refer to Customer data for more information. |
|
| The customer's home location. See User Data for more information. |
|
| The customer's purchase location. See User Data for more information. |
|
| An id enabling you to track widget activity. |
|
| A set of keywords related to this activity. |
|
| A set of categories related to this activity. |
|
| A set of items purchased during this activity. See below for an example payload . |
|
| Style overrides for the Thanks widget. |
|
| A callback that provides the pixel value to offset the widget from the top of the screen. Defaults to 70px. |
|
| A callback that will be called when the widget displays. |
|
| A callback that will be called when the widget is closed. |
Examples
Personal information
{
email: "[email protected]",
firstName: "Emma",
lastName: "Jackson",
phoneNumber: "+12025550125",
dateOfBirth: "2000-09-15",
age: 25,
gender: "female"
};Cart item
{
name: "Colourful stacking glass set",
category: "gifts",
value: 49.95,
currency: "USD",
quantity: 1
}Updated 25 days ago