3. Add conditions
In this example, a Condition is created that causes the Rule to trigger only for AT&T customers.
-
Under the Conditions section, click Add.
-
From the Extension drop-down list, select Mobile Core.
-
From the Condition Type drop-down list, select Carrier Name.
-
In the window on the right, select the AT&T checkbox.
-
Click Keep Changes.
4. Define the action
-
Under the Actions section, click Add.
-
From the Extension drop-down list, select Mobile Core.
-
From the Action Type drop-down list, select Attach Data.
-
On the right pane, in the JSON Payload field, type the data that will be added to this Event.
-
Click Keep Changes.
On the right pane, you can add a freeform JSON payload that adds data to an SDK event before an extension that is listening for this event can hear the event. In this example, some context data is added to this event before the Analytics extension processes it. The added context data will now be on the outgoing Analytics hit.
In the following example, poi.city
and poi.name
values are added to the context data of the Analytics event. The values for the new keys are dynamically determined by the SDK when this event processes.