Skip to content

Confusing behavior with accept/decline buttons #154

@sundayz-hunter

Description

@sundayz-hunter

Hi,

I've been trying to use this project and spent the whole day debugging the behavior of the cookie banner, but I'm still stuck.

Here’s what I’m seeing:

When I click "Accept" on the cookie banner, the resulting cookie is empty.

When I click "Decline", I get something like:
"analytics=-1|performance=-1"

From the docs, I expected the "Accept" button to set all consent groups to 1 (accepted), and the "Decline" to set them to -1 (refused), but it’s not behaving that way.

Also, the documentation is really unclear on how this consent logic is supposed to work, especially:

how groups are defined and handled in the frontend,

Additionally, I noticed there's a package on npm, but trying to import it in a modern frontend setup (like Vite) does not work. The script doesn't export anything usable as a module, and trying to import it in main.js leads to runtime issues.

Could you clarify how this is supposed to work?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions