Additional data implementation

Input channel (Web page)

To transfer additional data when calling the engine, you have to add the interactionGlobalCtx variable into the web page’s JavaScript code. Insert the Interaction node containing the call data into this variable. You must respect the same xml structure that is in the nms:interaction schema. Refer to: Additional data configuration.

interactionGlobalCtx = "<interaction navigationLanguage='"+myLanguage+"'/>";

Output channel

You must create a targeting workflow loading additional data in the work table by respecting the same xml structure and same internal names as in the nms:interaction schema. Refer to: Additional data configuration.

Using additional data

Eligibility rules

You can use the additional data in the eligibility rules for offers, categories and weights.

For example, you can choose to have the offer presented only to people viewing the page in English.

NOTE
You must limit the rule on the channels for which the data is defined. In our example, we are limiting the rule on the inbound web channel (Taken into account if field).

Personalization

You can also use this additional data when personalizing an offer. For example, you can add a condition for the navigation language

NOTE
You must limit the personalization on the channels for which the data is defined. In our example, we are limiting the rule on the inbound web channel.

If you have personalized an offer using additional data, this data will not appear in the preview by default because it is not available in the database. In the environment’s Example of call data tab, you must add value samples to use in the preview. Please respect the same xml structure that is in the nms:interaction schema extension. For more on this, refer to Additional data configuration.

When previewing, click Content personalization options for the preview and select a value in the Call data field.