Comments (4)
Hi @alexhansonsmith I did actually.
Just to give some context fist:
Our own anonymous identifier is being created by a piece of javascript that is loaded from the head of our website, hence the identifier is available in way before the entirety of the page loads.
What we discovered is that the consent manager does a series of lookups before generating a new identifier, to find if there was a previously generated one.
It looks at the local storage for a variable called ajs_anonymous_id
.
So the solution was simple. In the piece of javascript that is loaded from the header section of our page, we write our own anonymous identifier to localStorage with that name.
localStorage && localStorage.setItem('ajs_anonymous_id', our_anonymous_identifier);
This would always get picked up by the consent manager.
Hope that helps!
from consent-manager.
Hi @bartschelfhout - did you get anywhere with this? Without being able to control the identifier our MTU usage has spiked considerably
from consent-manager.
Hey @bartschelfhout - this is really helpful. Thanks for such a comprehensive response!
from consent-manager.
@alexhansonsmith @bartschelfhout Hi everyone, it seems that you already managed to fix the problem.
I join what @bartschelfhout says. The easiest way to override the anonymus ID is to overwrite it in the snippet as suggested in the segment documentation.
https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/identity/#override-the-anonymous-id-from-the-segment-snippet
You can find other ways to override the anonymous ID here
https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/identity/#override-the-anonymous-id-from-the-segment-snippet
On the other hand I will be adding a section to the documentation so that future users know how to do it.
Thanks for your contribution!
from consent-manager.
Related Issues (20)
- Cannot read properties of undefined (reading 'initialized'), at conditionallyLoadAnalytics HOT 4
- Recreate cookie if user has trail linked to their ID on Segment HOT 3
- I can confirm that we can add
- Custom destinations to Essential category but maintaining the N/A value HOT 2
- Cannot read properties of undefined (reading addSourceMiddleware) when Incognito (Google Chrome) HOT 1
- `shouldReload` is ignored sometimes HOT 1
- Consent Manager Builder on Render HOT 6
- Custom analytics events stopped working
- List categories instead of destinations when using ConsentManagerBuilder HOT 3
- `acceptAll` method in `bannerActionsBlock` overridden by `initialPreferences` settings HOT 5
- When using custom categories - it is not possible to create a category with N/A HOT 1
- Various typescript errors during build
- The preferencesDialogTemplate doesn't work as expected HOT 1
- Add Integrations to the Tools column that is not integrated via Segment HOT 1
- How we can use localization in standalone mode?
- Custom styling ConsentManager HOT 2
- Reload loop
- Setting shouldRequireConsent to false on version 5.8.1 does not track
- Send anonymous data on decline/no answer
- Minimal snippet version requirement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consent-manager.