Provide custom data to a placement
Learn how to add custom data to a placement
Custom data can be added for a specific placement. These parameters apply to a specific placement, such as a placement-level behavior.
Prerequisite
| Item | Description |
|---|---|
| Placement ID | Unique identifier for the placement
Follow these steps to obtain the placement ID:
|
Add custom data
There are several approaches to add custom data for a placement: query parameters, HTML attributes, and jwDataStore. The following sections explain how to use each approach.
Query Parameters
Custom data is added through a query string appended to the embed URL.
| Topic | Details |
|---|---|
| Parsing | Only at page load |
| Supported Data Types | Strings |
| Requirements |
|
| Data Override Rules | Overridden by:
|
| Example | |
HTML Attributes
This approach is required for the header method.
Custom data is added through data attributes added to a JWP placement <div> element.
| Topic | Details |
|---|---|
| Parsing | Only at page load |
| Supported Data Types | Strings |
| Requirements |
|
| Data Override Rules | Overrides:
|
| Example | |
jwDataStore
Custom data is added through attributes added at the page level.
| Topic | Details |
|---|---|
| Parsing | At every rule evaluation |
| Supported Data Types | All types |
| Requirements |
|
| Data Override Rules | Overrides:
|
| Example | |
Updated 8 months ago
