Skip to content

Commit 2ffc84b

Browse files
authored
Merge pull request #4517 from segmentio/niallzato-patch-2
Update Intercom Widget
2 parents 94f1aa2 + c111335 commit 2ffc84b

File tree

1 file changed

+17
-1
lines changed
  • src/connections/destinations/catalog/intercom

1 file changed

+17
-1
lines changed

src/connections/destinations/catalog/intercom/index.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,23 @@ analytics.identify('teemo', { someTrait: 'x'}, {
419419
> info ""
420420
> You can pass in the Intercom specific option using all supported calls for this destination (`page`, `identify`, and `group`).
421421
422-
### Control the Intercom Chat Widget (Mobile only)
422+
### Control the Intercom Chat Widget (Browser)
423+
424+
If you want to control the position or toggle the visibility of the Intercom Chat Widget, use the Intercom `update` method. After the Intercom instance is loaded on the client side, you can update the widget styling.
425+
426+
```js
427+
//Set styling
428+
window.intercomSettings = {
429+
    alignment: 'right',
430+
    horizontal_padding: 20,
431+
    vertical_padding: 20
432+
  };
433+
434+
//Apply update
435+
window.Intercom("update");
436+
```
437+
438+
### Control the Intercom Chat Widget (Mobile)
423439

424440
Segment's mobile SDKs let you tap into the Intercom instance that the integration creates so that you can call any of Intercom's native methods, including all methods required to interact with the Intercom chat widget.
425441

0 commit comments

Comments
 (0)