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.
2 parents 6f4ea63 + 007007e commit dc2acc9Copy full SHA for dc2acc9
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