You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/destinations/catalog/slack/index.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,9 @@ By default, your `identify` calls will not be sent through to Slack unless you h
33
33
### Identify Template
34
34
Once you've saved your whitelisted traits, you can now use them alongside [Handlebars expressions](http://handlebarsjs.com/expressions.html) syntax within a template. Make sure you reference the spec for the [Identify method](/docs/connections/spec/identify/) and [common object](/docs/connections/spec/common/). `Identify` events that contain the whitelisted `traits` will appear as a Slack message with the following default template:
35
35
```
36
-
Identified user \{{name}}. \n\{{traits}}
36
+
{% raw %}
37
+
Identified user {{name}}. \n\{{traits}}
38
+
{% endraw %}
37
39
```
38
40
where "name" is the first found of the following:
39
41
*`context.traits.name`
@@ -77,9 +79,13 @@ If you would like to have specific events be sent to a particular channel (#chan
77
79
### Event Templates
78
80
Event templates also use [Handlebars expressions](http://handlebarsjs.com/expressions.html) syntax. Make sure you reference the spec for the [Track method](/docs/connections/spec/track/) and [common object](/docs/connections/spec/common/). `Track` events will trigger a Slack message with the following default template:
79
81
80
-
`'\{{name}} did \{{event}}.'`
82
+
```
83
+
{% raw %}
84
+
{{name}} did {{event}}.
85
+
{% endraw %}
86
+
```
81
87
82
-
where "event" is the event name and "name" is found with the same logic as that of the "name" in the [Identify template](/docs/connections/destinations/catalog/slack/#identify-template).
88
+
"event" is the event name and "name" is found with the same logic as that of the "name" in the [Identify template](/docs/connections/destinations/catalog/slack/#identify-template).
83
89
84
90
The basic Track structure:
85
91
@@ -127,5 +133,5 @@ The Slack Destination does not support `page` or `group` calls. Only `track` eve
127
133
128
134
In order for `identify` events to work, make sure you [whitelist the traits](/docs/connections/destinations/catalog/slack/#whitelisted-traits).
129
135
130
-
### I'm seeing[object Object] in my Slack message
131
-
If you try to print an object (eg., `\{{properties}}`), you will see [object Object] in Slack. Drill down to a primitive type value (eg., `properties.plan`).
136
+
### I see[object Object] in my Slack message
137
+
If you try to print an object (for example, {% raw %} `{{properties}}` {% endraw %} ), you will see [object Object] in Slack. Drill down to a primitive type value (for example, `properties.plan`).
0 commit comments