Event notification in Slack is a simple yet powerful way to celebrate events in real-time as they occur in your product.
Where to find them
Head to your event list, then notice the "Setup Slack alert" on the right end side.
This is how you enable single slack notification for one track event.
How they work
You can customize the Slack message using custom fields
to add an email:
{{contact.email}}
to add a trait :
{{contact.traits.trait_name}}
to add a property :
{{event.properties.property_name}}
For examples if you collect emails for your contact and an image URL for your events you may write the following notification message:
π· {{contact.email}} just rendered {{event.properties.imageURL}}
You can also apply audience and property filters to make sure you receive notifications only about events and users that you care about.
β
In this example we will receive alerts in Slack only for users that do not have a @gmail address and when the event triggered has the report_type property equal to feature_release
β
Remove yourself from notifications
You can do it using an audience filter email, like this:
Attach a company to a slack notification
π {{contact.email}} from {{company.name}} just {{event.name}} using {{event.properties.source}}
Here's an example of how to attach the company name into a slack notification Mind that to do this you need to pass the group id in the context of the track event!!
Advanced formatting
When rendering messages with {{contact.email}}
we will render the email as a link to the June profile of the user you're looking at.
β
If you want to render just the war value of the email you can use {{contact.traits.email}}
in your message body.
If you need to render a message with spaces or special characters that will also work as long at the variable does not contain the }}
characters.
β
For example if you have a user trait called Active Days (30d), you can render it with the following template:
{{contact.traits.Active Days (30d)}}
How they feel
They feel like this:
Disclaimer:
As June is focused on the product analytics of B2B SaaS companies and their post-signup experience, we do not support Slack alerts for anonymous users. The user would need to be identified for the Slack alerts to work.