We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a492bb7 commit 2d04a7bCopy full SHA for 2d04a7b
src/connections/auto-instrumentation/web-setup.md
@@ -92,6 +92,18 @@ https://my-website.com?segment_signals_debug=false
92
93
### Advanced
94
95
+#### Emitting Custom Signals
96
+If you need to listen for data that is unavailable to the Signals plugin by default, you can create and emit a custom signal:
97
+
98
+```ts
99
+import { signalsPlugin } from './analytics' // assuming you exported your plugin instance.
100
101
+signalsPlugin.addSignal({
102
+ type: 'userDefined',
103
+ data: { foo: 'bar' }
104
+})
105
+```
106
107
#### Listening to signals
108
```ts
109
const signalsPlugin = new SignalsPlugin()
0 commit comments