Skip to content

Commit 38cd95c

Browse files
authored
Update Intercom Widget
Update Intercom Widget
1 parent 922b37f commit 38cd95c

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 wish to control the position, or toggle the visiblity, of the Intercom Chat Widget you can use the Intercom `update` method to do this. After the Intercom instnaces is loaded on the cleint side, the widget styling can be updated.
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)