How to identify users coming from a campaign March 07, 2024 13:45 Updated Whenever a user accesses the bot via a campaign, it will be possible to identify attributes related to that campaign in the metadata of the first message sent. Please observe in the bot's log: To extract this information, two output actions are required in the Start block. The first action will be to define the variable, with the following parameters: The second action will be to execute a script used to obtain only the value of messenger.ad_id present in this metadata. function run(metadata){metadata= JSON.parse(metadata);return metadata["messenger.ad_id"];} The script scope will be presented, as shown in the image below: Utilize event logging to enhance data capture and make it more presentable through custom reports. For more information, visit the discussion on the subject in our community or the videos on our channel. 😃 Related articles How to identify users coming from a Click to Chat WhatsApp ad published on Facebook How to use Click Tracker to determine which Click to WhatsApp ad is best for your business. Blip Desk Overview How to configure an active message response redirecting for an attendant in Blip Desk Dashboard - Conversational Flow