Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usercentrics.eu on srf.ch #404

Open
salim-b opened this issue Nov 2, 2023 · 1 comment
Open

usercentrics.eu on srf.ch #404

salim-b opened this issue Nov 2, 2023 · 1 comment

Comments

@salim-b
Copy link

salim-b commented Nov 2, 2023

The site srf.ch uses the CMP usecentrics.eu. Just hiding the consent banner without giving consent disables video playback. Thus it would be nice if Consent-O-Matic would support the site out of the box.

A rule for usecentrics.eu was added in #167 and updated in #317. Unfortunately this rule doesn't work on srf.ch. It needs different CSS selectors to work.

I tried adapting the existing usecentrics.eu rule but got stuck. So far I figured we probably need to

  • add [data-testid="uc-app-container"] to usercentrics.detectors[0].presentMatcher.target.selector and to usercentrics.detectors[0].showingMatcher.target.selector
  • add [data-testid="uc-tab-content-container"] to usercentrics.methods[2].action.actions[1].target.selector ("type": "waitcss")
  • add [data-testid="uc-toggle-toggle-custom-category] to usercentrics.methods... ("type": "list" -> "type": "consent" -> "type": "B")
  • add [data-testid="social-media-und-externe-drittsysteme"] to usercentrics.methods... ("type": "list" -> "type": "consent" -> "type": "X")
  • plus more...

Would be glad if someone more proficient could take over from here 🙏

@salim-b salim-b changed the title usercentrics.eu broken? usercentrics.eu on srf.ch Nov 2, 2023
@wildwizzy
Copy link

wildwizzy commented Nov 8, 2023

I found similar issues. The CMP idea is a great idea, however, each CMP tries to be generic, but the issue is many web sites use different button IDs and also consent buttons. I did get rsonline working for postoffice by using conditional css statements (see pull request for details: #405 ). I suspect if there are many web sites that try to use the same CMP but fail, the best solution is to make the CMPs specific to the web site by checking the URL, otherwise trying to get it work for so many web sites is just too complicated and we lose track of which web sites it is meant to handle.

My thoughts are with srf.ch if the differences are small you can try to modify the usecentrics.eu CMP with some ifcssactions, otherwise make the usecentrics.eu CMP check the URL, and create a new CMP for srf.ch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants