mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 20:18:08 +00:00
chore: Add custom attributes in campaign.triggered event (#4463)
This commit is contained in:
@@ -78,12 +78,13 @@ const getCampaigns = token => ({
|
||||
website_token: token,
|
||||
},
|
||||
});
|
||||
const triggerCampaign = ({ websiteToken, campaignId }) => ({
|
||||
const triggerCampaign = ({ websiteToken, campaignId, customAttributes }) => ({
|
||||
url: '/api/v1/widget/events',
|
||||
data: {
|
||||
name: 'campaign.triggered',
|
||||
event_info: {
|
||||
campaign_id: campaignId,
|
||||
custom_attributes: customAttributes,
|
||||
...generateEventParams(),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user