The rules that you set up can use the available triggers and conditions, which result in one of the following actions:
Send a postback
Send Personally Identifiable Information (PII)
Open a URL
After these actions have been configured to be triggered and published, the Signal extension carries out the requested actions.
To send PII data to external destinations, the PII action can trigger the rules engine when certain triggers and traits match. When setting a rule, you can also set the PII action for a Signal event. The collectPii API can then be used to trigger the rule and send the PII data.
Rules tokens are special strings that are used in rule actions as values and are expanded by the SDK when the action is carried out. The format of a token is `
, where token is any data element that is defined in Experience Platform Launch for a mobile property that identifies the source of the data from which the token is expanded. For example,
can be used in the Signal postback action, whereMy Data element for ECID` is a data element that was created using the Mobile Core extension, and the data element type is Experience Cloud ID.
Some tokens are modifier functions that specify the transformation that is applied to the value that was replaced by the token. An example is urlenc, which specifies that the value will be URL-encoded before it is replaced in the rule.
Using tokens in Postbacks and PII rule actions
The Send Postback and Send PII actions allow you to specify a URL field and an optional Post Body field. You can specify which tokens should be expanded by the Experience Platform SDKs when the postback or PII network call is triggered. For more information on tokens, see the rule tokens documentation.
The following example shows how to use the data that is passed to the MobileCore (Android) / ACPCore (iOS) collectPii API to form a token:
In the mobile application, call collectPII to fire Event with context data.
Map<String,String> data =newHashMap<String,String>();
Similarly to using tokens in postbacks and PII rule actions, Open URL actions allow you to specify a URL, which can contain the tokens that will be expanded by the Experience Platform SDKs. For more information about tokens, see the rule tokens documentation.