hivemq / hivemq-edge

HiveMQ Edge is an MQTT gateway that enables interoperability between OT devices and IT systems. It translates diverse protocols into MQTT for streamlined communication and helps organize data into a unified namespace, making managing and streaming data across your infrastructure easier.
http://hivemq.com
Apache License 2.0
90 stars 20 forks source link

feat(21687): Add integration with Heap Analytics and user consent banner #404

Closed vanch3d closed 1 month ago

vanch3d commented 2 months ago

See https://hivemq.kanbanize.com/ctrl_board/57/cards/21687/details/

The PR adds integration with the `Heap Analytics user journey tracking framework and a simple "Privacy Settings" consent form.

The integration relies on an application id defined for the app (a different id for production and development environments), to be tracked by Heap. The implementation expects this id to be provided through the VITE_MONITORING_HEAP environment variables.

Different strategies for open source or commercial installations must be investigated to provide the relevant application id to the app.

Design

After

screenshot-localhost_3000-2024 04 30-17_51_31

vanch3d commented 1 month ago

Heap integration refactored to accommodate dual consent:

Note that the user flow around the <head>-based script is just a glorified hack; it might be changed in the future