amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Increase CMP consent storage size

Open janwinkler opened this issue 5 years ago • 14 comments

This is a followup on ticket #24464:

The storage size is now increased to 1200 characters for the consent information. unfortunatelly the google additional consent information is not stored in a compressed way and therefore results in a very long string. for most publishers both (TCF v2 string and additional consent string) are important for their monetization. Hence the feature request is to

a) further increase storage size for consent information or b) separate storage size rules for each part (e.g. 1000 chars for tcf tcstring and 1000 chars for google add.consent string) or c) compress the information that is in the google additional consent string (e.g. similar to the bit-logic in TCF)

janwinkler avatar Dec 18 '20 16:12 janwinkler

+1 here from Didomi ; this is a big blocker for using additional consent on AMP

I think c is the best option (not just for AMP) but I'd assume it's outside of the AMP scope. Using a separate storage would fix the issue for now and allow for optimizations from the Google Ads side once/if they switch to a more compressed format for the AC string.

jawadst avatar Dec 18 '20 21:12 jawadst

+1 here from Quantcast, we're getting several publishers who are running into this issue with Choice. We're having to tell them to just turn off Google Additional Consent mode for AMP for now.

a2intl avatar Jan 27 '21 17:01 a2intl

+1 here from Sirdata As a workaround, we're recommending publishers to limit the Google Additional Consent providers in their CMP but it doesn't always work. I also agree with the c) option but I think Google should be responsible for this in the first place, thus they could propose a new way to encode the AC string that we could use in all environments.

tla-sirdata avatar Feb 05 '21 08:02 tla-sirdata

+1 from News UK. This is an issue for us, limiting how we monetise AMP and the vendors we have in our lists. The options above shouldn't necessarily be mutually exclusive.

dpetrieldn avatar Feb 24 '21 14:02 dpetrieldn

+1 from Bauer Media. Arguments are the same as above

davidpmolloy avatar Mar 01 '21 11:03 davidpmolloy

Hi there,

As it seems that this bug had a lot of traction from CMP and publishers (including the one I'm working for: CCM Benchmark - Le Figaro) but not much from the AMP Project, I created a pull request with a target of 7000 chars. Feel free to add a comment on the pull request to discuss the target storage length,

Thanks,

xavierleune avatar Apr 21 '21 15:04 xavierleune

HI all, sorry for the delayed response. We are actively looking for solutions to this problem. We understand that it is a very large problem for CMPs and are looking to remedy ASAP.

As for increasing the limit to 7kb, as seen from this comment https://github.com/ampproject/amphtml/issues/24464#issuecomment-627531413, it needs coordination with the viewer team or else it won't work either.

micajuine-ho avatar Apr 21 '21 16:04 micajuine-ho

Hi @micajuine-ho and thanks for your feedback. Can you make sure to raise the real needs up to the viewer team ? I'm sure it's a pretty small change for the team, all we need here is goodwill from Google. This issue has an impact on revenues for publishers & for Google.

xavierleune avatar Apr 23 '21 12:04 xavierleune

After chatting with the Google Viewer team, it looks like they have changed their implementation and no longer have this 2KB per domain localStorage restriction.

Therefore, I think we can remove the client-side storage restriction as long as other viewer teams are on board (@ssantosms for Bing Viewer).

We are looking to implement this change in a few weeks to give other Viewer teams time to discuss these changes and make any changes if needed.

micajuine-ho avatar Apr 28 '21 16:04 micajuine-ho

Thanks for the update @micajuine-ho. However, 2kb is not enough. My pull request changed the limit to 7kb. Is there anything wrong with the numbers I provided ?

xavierleune avatar Apr 28 '21 17:04 xavierleune

Hi @xavierleune, I think you might have misunderstood my comment:

it looks like they have changed their implementation and no longer have this 2KB per domain localStorage restriction.

therefore, we would remove the current client-side restriction entirely. Does that make sense?

micajuine-ho avatar Apr 28 '21 17:04 micajuine-ho

Yes indeed, sorry about that. That's a great news! Thanks for your help 👍

xavierleune avatar Apr 28 '21 17:04 xavierleune

Thanks a lot @micajuine-ho !

xavierleune avatar May 06 '21 16:05 xavierleune

Hi, for the records I don't see any errors related to the consent string storage in the viewer now :) Thanks for your help

xavierleune avatar May 31 '21 14:05 xavierleune