-
Notifications
You must be signed in to change notification settings - Fork 143
Usage with @segment/analytics-next #193
Comments
hey @Titou325, unfortunately this is not possible with the existing implementation of consent manager. The consent manager assumes that |
This feature would be very useful. |
Are there any news? When will it be possible to use it with Also the old
|
I don't understand - can we not use this? There is documentation that says V2 is backwards compatible with V1... but then this Consent Manager doesn't work so it's not backwards compatible. Can someone explain what is missing / incompatible and what is needed to support V2? |
@seanlail consent manager is only incompatible when using AJS 2.0 as an npm package. If using V2, but also using Segment Snippet to load AJS, consent manager still works as expected. |
Is there a timeline for future support? If the library is backwards compatible with AJS 1.0 why can we simply not do: window.analytics = AnalyticsBrowser.load({ writeKey }) // import from analytics-next before ConsentManager is loaded? |
Any movement on this? Wanted to move to using the |
Bump! |
Up! |
Bump |
It looks like Segment included a consent-management tool inside of their I haven't used it yet, but I'm confident it's compatible with the rest of analytics-next |
Hi, thanks a lot for this plugin which is very useful!
We are trying to move to @segment/analytics-next as part of our integrated React codebase and as such are now using webpack to bundle the analytics. It thus seems that they are no longer available at window.analytics and we can't use react hooks on the consent response.
Here is an example of the code that we have :
How could we easily adapt this to work with the consent manager API, especially the custom consent manager? I guess it should be documented if feasible. Let us know if we can be of any help.
Have a nice day!
The text was updated successfully, but these errors were encountered: