Skip to content

[🐞]Cookiefirst not functional when handled by partytown #661

@BluntlyCat

Description

@BluntlyCat

Describe the bug

When I load GTM via partytown where Cookiefirst is integrated or directly include Cookiefirst as script with the text/partytown type Cookiefirst gets not loaded properly.

The main script (consent.js) is added to the DOM and some autoblocker script but the css for example is missing. When loading the page and Cookiefirst is handled by partytown the one or the other way, partytown starts to perform 20k+ requests and is loading more than 20MB of data.

Is this a known issue or do you have any suggestions?

Reproduction

https://ecom-staging.contabo.com/en/

Steps to reproduce

  • Add Cookiefirst into GTM
  • Load GTM handled by partytown
  • Load the page and watch the network tab

Browser Info

Chrome, Edge, Firefox

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions