MetaRouter makes it easy to send your events to your Slack workspace. This Destination will help send Identify and Track events to the Slack channel of your choice.
Prepare a connection with your Slack Workspace
Slack has a more in-depth guide to Getting Started with WebHooks that goes over creating your first WebHook and all of the steps needed for your account. Once you have a Webhook URL, that is all of the necessary steps in order to send events to your Slack Workspace.
If you’ve alreay have made a Webhook previously, go to Magange Apps within your Workspace Settings and select Custom Integrations on the side-nav. Within Custom Integrations, select Incoming Webhooks and select Add Configuration.
Adding the connection and configuring settings
Below are the settings needed to sucessfully connect and configure MetaRouter to send events to your Slack Workspace.
Slack Channel Webhook (required)
This requires the URL Slack gave you when you added an new Incoming Webhook Configuration.
Whitelisted Identify Traits
As located within your Identify event’s
traits property, this is a list of values that you want to trigger an identify event on Slack. If a triat you list is not in a triggered Identify event it will not be sent to Slack, however if an Identify event matches at least one trait, then it and all of the traits that are in it will be sent as a message on Slack.
If you do not whitelist any traits, no Identify event will be sent to Slack.
Identify Event Template*
This field allows you to customize the message that appears for Identify events that match whitelisting. You can automatically use Handlebars to template data within your Slack messages.
Everything within the Identify event
traits are available, as well as
\ that will attempt to display an identifier of the user with all available information.
By default, Identify events print out all traits.
Track Event Templates
This field allows you to customize the message that appears for specific Track events that match the name that you provide. You can automatically use Handlebars to template data within your Slack messages.
Everything within the Track event is available, as well as
\ that will attempt to display an identifier of the user with all available information and
\ with handles converting the event name into something Slack friendly.
For instance, if you want to add the page path that the event was triggered on, you can use this template
By default, Track events print out
\ did \}.
Track Event Channels
This field allows you to specify sending events to specific channels, instead of the one specified by default for the Slack Webhook. For instance, you can set up your Slack Webhook to send messages to #cloud_events but specifiy here to send the
Purchase event to the #sales channel.
Only Send Templated Track Events
By checking this field, we will automatically drop all Track events that you have not created a custom template for. This helps you prevent a large amount of message volume from going into a Slack Channel.
If you’d prefer not to customize the message for each filtered event, just add the default template
\ did .
Note: Events filtered this way will still count towards your monthly event usage.