- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
04-11-2017 03:12 AM - edited 04-12-2017 12:34 AM
we have encountered some problems with the Privacy Manager Extension.
How we can modify the privacy settings in Tealium by code? There is an API for that?
What logic do you advice in cases like this?
We understood that the privacy settings are saved in a cookie named OPTOUTMULTI, but we want to avoid some reverse engineering on how is defined and manipulate it directly.
04-12-2017 09:31 AM
Attached is an example code for you to review but this is only an example you will need to adapt to your own PM extension cookie settings and test yourself. I have some notes in the sample to help as well. Let me know if you have any questions.
06-28-2018 04:12 PM
Thanks, @robert_sabec, for this sample code, I think I can use it also - but here's my question: how do I know what the category ids mean? As in what does 1 mean? and 2 means what?, etc. Is there a place to see that? In the debugger? In my case I need to map another cookie consent tool's categories to what we have configured in PM.
Appreciate any guidance....
06-29-2018 10:29 AM - edited 06-29-2018 10:32 AM
The cookie will always start off with values '0' and 'c1'. Zero is for 'Tealium Cookies and c1 is the 'default category'. As you add categories ( and tags to those categories ) then those are incremented up by 1 and included in the cookie.
In my screen shot I've added two additional categires, only the third category I added has a tag in it so only c3 shows in my cookie. ( no tags curently are in my c2 so it is not in the cookie. )
Also keep in mind as you add and delete 'categories' the new one is assigned +1 increment from the last and the one deleted is removed and not reused. ( I would reccomend you set up your categories then make no further changes to them )
The values are 0 and 1.
0 equals privacy manager is 'off' and the tags or cookie are 'on', 1 equals privacy manager is 'on' and the tags are 'off'.
06-29-2018 10:50 AM
Thanks @robert_sabec for the explanation - it would be great if some of this info were documented in the specific PM docs as well, or in tool hints, etc. I realize that every user doesn't need it, but it would be helpful for those of us who need to integrate with other Consent tools.
06-29-2018 11:29 AM
Hi again @robert_sabec, if I may - here's a question about the OPTOUTMULTI cookie... what does the other stuff mean? If I dump that cookie out, here's what it gives me:
["0:0", "2045:0", "5001:0", "6026:0", "7001:0", "7115:0", "7117:0", "7129:0", "12047:0", "19004:0", "c1:0"]
So far I have no tags in any categories. Thanks for any help/explanation!
06-29-2018 01:12 PM
So, if you're managing tags by category, then your OPTOUTMULTI cookie will start with 0:0 (which is the setting for the utag main cookie), and then be followed by a set of preferences in the form:
"c" + category_id + ":" + opt_out_flag
However, if you're managing tags individually, then the OPTOUTMULTI cookie starts with 0:0 as usual, but is then followed by a set of preferences in the form:
tag_vendor_id + ":" + opt_out_flag
Where the tag_vendor_id aligns to the tid property of the entry in utag.loader.cfg that defines that tag. If you've got twenty Google DoubleClick tags, they'll all have the same tid value, and a single preference set in OPTOUTMULTI will apply to all of them. I believe the same goes for Custom Containers - for me, they all show up as tid:20010, meaning a user would either be opted in to all of them, or opted out of all of them, whereas in the category view, you can specify a different category for different tags.
06-29-2018 01:25 PM
Copyright All Rights Reserved © 2008-2023