Multiple display options based on specific pages

๐Ÿ‘ Gathering Votes

I'd love the option to target specific pages in my app with the ability to use wildcards. The reason is I am building a SaaS. On my public pages (login, terms, privacy policy, etc.) I'd like to use either the bubble or tab to trigger the Privacy Center. But inside my app, I don't want to show those all the time. Instead, I'd like to trigger the Privacy Center with a custom trigger (a button click from the user's account preferences). By using multiple options to trigger the privacy center I'm able to have full use of Concord on my full web site while maximizing the UX for my customers.

Anonymous

4 months ago

Activity
Dash

We are considering some options here. While we provide a number of convenience methods if you want to trigger things are you on that can either be added via custom code via a site/app or via our custom script option under Deployment (an example is included below for toggling the widget), the idea of selectively enabling the floating button on certain pages in an easy fashion is a good idea so we will take a look at some options there.

(function () {
    function onConcordReady(callback) {
        if (window.concord && window.concord.ready) {
            callback();
        } else {
            window.addEventListener('concord-ready', callback);
        }
    }

    onConcordReady(() => {
        const link = document.querySelector("privacy-center");

        if (link) {
            link.addEventListener('click', (evt) => {
                evt.preventDefault();
                if (window.concord && window.concord.plugin && window.concord.plugin.widget) {
                    window.concord.plugin.widget.toggle();
                }
                return false;
            });
        }
    });
})();

0    4 months ago    Reply

Comment must be at least 20 characters.
Cancel

We love to listen to our customers.

Categories
Feature