Adding custom logics
In addition to the configurations available in the configurator and those explained in the documentation, there is the possibility of developing customized logic and interfacing with our CMP in different ways.
To develop custom logic we would like to tell you not to rely on the HTML structure of the PubConsent panel and not to use CSS selectors that refer to the classes used in the PubConsent panel.
Some Publishers need to recreate behaviors such as: accept all on scroll. To give publishers the opportunity to develop the functionality just described, PubConsent specifies an HTML identifier for the "Accept all" button.
With the pt-accept-all identifier it will be possible to trigger the Click event through custom functions on your website.
Other custom logic can be developed for the Cookie Wall mode and the Popup Wall Mode such as implementing an accept all button if you want to develop a page on your website that manages mandatory subscription or accepts all.