Adding analytics and a cookie banner
Analytics shows you how people find your website and what they look at, and an ad pixel measures the ads you run on Meta or Pinterest. You connect each by pasting an ID. If visitors need to be asked first, a cookie banner holds the tracking back until they agree.
Google Analytics is included on Plus and Pro. Meta Pixel, Pinterest Tag and Google Tag Manager are on Pro. The cookie banner works on every plan. See CoreHue plans.
Connecting a tracking service
- In the website editor, go to Settings → Integrations → Analytics.
- Paste your ID into the box next to the service.
- Click outside the box to save it.
- Publish your website.
Tracking starts on your published site after that publish. If an ID doesn't look right, you'll see a message like "Use your Google Analytics ID, such as G-XXXXXXXXXX". To disconnect a service, clear its box and publish.
A service your plan doesn't include has a plan label and a greyed box, and clicking it shows the upgrade.
Where to find each ID
| Service | What the ID looks like | Where to find it |
|---|---|---|
| Google Analytics | G-XXXXXXXXXX | In Google Analytics, open Admin, then Data streams, pick your website's stream and copy the Measurement ID. |
| Google Tag Manager | GTM-XXXXXXX | At the top of your Tag Manager workspace, next to the container name. |
| Meta Pixel | A long number | In Meta Events Manager, under your data sources. Pick your pixel and copy the ID under its name. |
| Pinterest Tag | A long number | In Pinterest Ads Manager, under Conversions, where your tag is listed. |
For most photographers, Google Analytics on its own is plenty. Tag Manager is only worth it if you already use it.
Turning on the cookie banner
In some places, including the UK and the EU, visitors have to agree before a website uses analytics or advertising cookies. The cookie banner asks them.
- Go to Settings → Visitors → Privacy. The cookie banner settings come first, above Image protection.
- Turn on Cookie banner.
- Change the Message if you like. Until you do, the banner uses a short sample.
- Change the Accept button and Reject button labels if you like. They start as "Accept all" and "Reject all".
- Under Policy link, choose a page on your site or Another web address for your privacy policy, or leave it on None.
- Publish your website.
A preview at the top shows the banner as visitors will see it. Its built-in words follow the Language set in Search appearance where a translation exists.
What visitors see
The banner sits as a small card in the corner of every page until the visitor chooses. Your accept and reject buttons look the same, so neither is the easier click. Preferences lets visitors choose by category:
| Category | What it covers |
|---|---|
| Necessary | What your site needs to work. Always on. |
| Analytics | Google Analytics and other code that counts visitors. |
| Marketing | Meta Pixel, Pinterest Tag, Google Tag Manager and content from other services. |
They confirm with Save choices. A Cookie settings link in your footer lets them change their mind later. Their choice lasts six months, then the banner asks again.
How tracking waits for consent
With the banner on, Google Analytics waits until a visitor allows Analytics, and Meta Pixel, Pinterest Tag and Google Tag Manager wait for Marketing. A visitor who rejects never loads them. Custom code and embeds can wait for consent too. See Adding custom code.
With the banner off, everything runs as soon as a page opens. Whether you need the banner depends on where you and your visitors are. We can't give legal advice, so check the rules that apply to you.
If your plan changes
If you move to a plan that doesn't include a service, its saved ID stays in its box, greyed out, and isn't added to your published site. The Remove link next to it clears it. Upgrade again and it works as before.
Frequently asked questions
Why don't I see any visitors in Google Analytics?
Check that you published after adding the ID, and that it matches the stream for this website. With the cookie banner on, only visitors who accept analytics are counted. Open your site in a private window and accept to test it.
Does analytics count my own visits while I edit?
No. It only runs on your published website, never in the editor or Preview.
Do I need a cookie banner if I don't use analytics?
Maybe not, but code and embeds from other services can set cookies too, so check what you've added.
Can I change the banner's colors?
The banner uses your website's colors and fonts, so it matches the rest of your site.