This is a simple guide showing how you can use AnnounceKit as a Source and send user event data into the Segment platform. You do the setup in Segment; there is nothing to switch on in your AnnounceKit dashboard.
1) Log in to your Segment dashboard
From the main menu of your Segment dashboard, go to Connections, then Catalog, then Functions. On that page, the New Function button takes you to the section where you create new functions.
2) Create a new function
At this stage, you create the function that sends AnnounceKit user events to Segment. As AnnounceKit is used as a Source, pick the Source type and continue to the next step, where you build the function.
You can find the function's code in the handler.js file. Paste it into the editor and click Configure.
3) Connect the AnnounceKit source
Once the function is created, open it and click Connect Source to connect the AnnounceKit source to your Segment workspace.
4) Add destinations
As the last step, add any Segment destination that should receive AnnounceKit user events. Then copy the webhook URL shown under Configure your webhook.
Share the webhook URL with us. We add it to your workspace, and AnnounceKit starts sending your user events to Segment.