Using the the Smarty utility addSendProperties
you are able to add key/value pairs to the properties object of any system event related to the message contact ID (open, click, bounce, etc.).
{$utils->addSendProperties(["foo"=>"bar","foo2"=>"bar2"])}
The above example will add the key/values pairs to the properties object of the system event:
"properties":{ "foo":"bar", "foo2":"bar2" }
You may also add a dynamic value to the properties object:
{$dynamicValue = 'biz'} {$utils->addSendProperties(["foo"=>"bar","dynamicValue"=>{$dynamicValue}])}
The above example will add a the key/values pairs to the properties object of the system event (where dynamicValue is "biz"):
"properties":{ "foo":"bar", "dynamicValue":"biz" }
Note that send properties can be rendered in a message the getEventRecords method, they are not available for searching contacts using audience rules.
Comments
0 comments
Please sign in to leave a comment.