Skip to content

Document a cookie consent implementation using useScriptTriggerConsent() #316

Open
@harlan-zw

Description

@harlan-zw

📚 Is your documentation request related to a problem?

Usage it not clear for end users that this trigger doesn't actually do anything.

const trigger = useScriptTriggerConsent();

const { load, proxy } = useScriptGoogleAnalytics({
  id: "YOUR-GA-ID",
  scriptOptions: {
    trigger: trigger,
  },
});

🔍 Where should you find it?

No response

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions