Install Chartsy alongside a cookie banner
Use the consent tag: counted without cookies until a yes, cookies after. Or go cookieless and skip the banner.
1Pick a cookie setting
In Chartsy under Settings → Domains → Cookies & consent. Use cookies gives full 90-day attribution, and Chartsy sets cookies for everyone it loads for. Cookieless stores nothing on anyone's device, so no banner is needed, but visitors are only matched within a single day.
The script tag carries the setting as data-cookies, so after changing it, copy the tag again from Growth → Set up tracking.
No banner?
Choose Cookieless and install the plain script on every page. Everyone is counted.
2With cookies and a banner: use the consent tag
If your visitors have to opt in (for example in the EU or UK), paste this tag in the <head> of every page instead of the plain one. Copy it with your own key from Growth → Set up tracking, under Using a cookie banner?
<script async src="https://chartsy.fra1.digitaloceanspaces.com/production/static/track.js"
data-key="ch_pk_..."
data-api="https://dashboard.chartsy.app/api/attribution"
data-cookies="consent"></script>Until the visitor accepts, Chartsy counts them without cookies, the same way as Cookieless. When they accept, it switches to cookies and keeps the source of the page they landed on, even if they accept on a later page. Visitors who decline are still counted, without cookies.
3Tell Chartsy about the yes
Nothing to do with CookieYes, Cookiebot, Complianz, OneTrust, Google Consent Mode or any WordPress banner that supports the WP Consent API: Chartsy reads their analytics (statistics) choice by itself. With any other banner, call this from its Accept button. Once is enough; later pages remember the yes.
// In your banner's Accept callback:
window.chartsy?.consent();
// Visitor withdraws consent: deletes Chartsy's cookies
// and goes back to counting them without cookies.
window.chartsy?.consent(false);If your marketing site and app are on different domains, use the consent tag on both.


