How to identify users coming from an ad campaign Take Blip January 07, 2021 16:19 Updated Integration with Sugar ADs and Facebook ADs will be discontinued as of 07/22/2020 Whenever a user accesses the bot via Campaign, in the metadata of the first message sent, it will be possible to identify attributes related to that campaign. Observe these methods in the bot log: To extract this information it is necessary to run a script. The script below is used to obtain only the value of the messenger.ad_id present in this metadata: function run(metadata){metadata= JSON.parse(metadata);return metadata["messenger.ad_id"];} Use action “event logging” to enhance data capture and make it more presentable on custom reports. Related articles How to get the number of users affected by a broadcast How to publish your Chatbot to Google Business Messages How to integrate and send data from a bot to Dashbot? How to connect your own application through Advanced Settings How to check contact quality on WhatsApp