-
Notifications
You must be signed in to change notification settings - Fork 151
Support middleware functions #348
Comments
Could you explain what is your issue, please? |
Filter events (or prevent tracking) dynamically based on the business rules. |
Would using a source middleware read this documentation, please |
Server-side (analytics-node) is different from the source middleware that we use already. Not sure what you mean. |
@Mihailoff I believe there is some confusion as to exactly what the issue is you are having. Are you unable to filter events using your/our middleware solution? Are you describing a solution for another issue you may have had? I believe we just need some clarity on what the issue is exactly so we can better assist you in resolving it. Thank you. |
The client (browser) library has middleware functionality, I thought it would be logical to port the same approach to the server side. My issue is that I need to filter events based on dynamic rules -- custom middleware is a perfect solution for it. Client and server are different data sources. |
@Mihailoff We are working on Node runtime support with https://github.com/segmentio/analytics-next (AJS 2.0) ... so you can use |
Middleware support is in the new analytics node: https://github.com/segmentio/analytics-next/tree/master/packages/node |
Browser library has a handy feature that allows using middleware functions.
https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/middleware/
The text was updated successfully, but these errors were encountered: