Skip to content
On this page · 8 sections
  1. Add tracking codes
  2. Turn on the cookie consent banner
  3. Who sees the banner
  4. Consent categories
  5. How tracking waits for consent
  6. Change the banner text
  7. Let visitors change their choice
  8. Ask everyone again
Docs

Tracking and cookie consent

Updated

Add Google Analytics, Google Tag Manager and the Meta Pixel to every page, and ask visitors for consent with the built-in cookie banner.

in1s adds tracking tags and a cookie consent banner to every page of your website, whatever theme you use. You paste an ID, and in1s adds the vendor's tag for you. If you switch on the cookie banner, those tags wait until the visitor agrees. Both settings belong to the website, not the theme, so they stay in place when you change themes.

You manage both on the Marketing page, in the Tracking codes and Cookie consent tabs. You need permission to edit the website's settings to open either tab.

Add tracking codes

  1. Open the Tracking codes tab

    In the panel at https://accounts.in1s.com, open your website, then go to Marketing > Tracking codes.

  2. Paste your IDs

    Fill in the IDs you use. You can leave any of them empty.

  3. Save

    Click Save. The tags are added to every page straight away.

Field Format Where to find it
Google Analytics 4 measurement ID G- followed by letters and digits, for example G-AB12CD34EF In Google Analytics: Admin, Data streams, your web stream.
Google Tag Manager container ID GTM- followed by letters and digits, for example GTM-AB12CD3 At the top of your Tag Manager workspace.
Meta Pixel ID 6 to 20 digits In Meta Events Manager, under Data sources.

Spaces around an ID are removed and letters are changed to capitals. An ID in the wrong format is refused with an example of the right one. To remove a tag, clear its field and save.

Note

Previews of your website never load these tags, so your own visits while you preview are not counted. The tags are also left out of the theme editor.

The banner asks visitors whether they allow optional cookies. Until a visitor accepts, Google Analytics, Tag Manager, the Meta Pixel and any custom code in an optional category stay switched off.

  1. Open the Cookie consent tab

    Go to Marketing > Cookie consent.

  2. Switch the banner on

    Turn on Ask visitors for consent.

  3. Choose how it looks

    Pick a Layout (Bar across the bottom or Box in the corner) and Colours (Light or Dark). In Privacy policy link, enter a page of your website that starts with / (for example /pages/privacy-policy) or a full address.

  4. Save

    Click Save.

The card shows the banner's state. On means visitors are asked before optional cookies are set. Off means tags and custom code run straight away.

Who sees the banner

Under Show the banner, you choose:

  • To every visitor.
  • Only where the law requires it (EU, EEA, UK, Switzerland). For this option, in1s needs to know the visitor's country. Where in1s cannot detect the country, this option is unavailable and the panel tells you so. Visitors whose country is unknown are always asked.

The banner groups cookies into four categories. Visitors can accept everything, reject everything, or choose categories one by one.

Category What it covers Runs
Strictly necessary What the website needs to work, including the cookie that stores the visitor's choice Always
Analytics Google Analytics and Google Tag Manager After consent
Marketing The Meta Pixel After consent
Preferences Code that remembers a visitor's choices After consent

You choose a category for each piece of custom code. Popups also wait for the visitor's answer before they show.

  • Until the visitor chooses, Google Consent Mode reports every category as denied.
  • When the visitor allows a category, the tags in that category start on the same page, without a reload.
  • Tag Manager loads only after Analytics consent. Google tags inside your container then follow each visitor's choice through Consent Mode. Tags from other vendors inside your container must use Tag Manager's own consent checks.
  • If a visitor later withdraws a category, in1s deletes the analytics or marketing cookies that its own Google and Meta tags set, then reloads the page. in1s cannot remove cookies set by your custom code, or cookies a vendor keeps on its own domain.
  • The choice is kept for six months in one strictly necessary cookie.

Important

With the banner off, every tag and every piece of custom code runs as soon as the page loads. Whether you need a banner depends on the laws that apply to you and your visitors.

Change the banner text

The Banner text card holds every text the banner shows, in three groups: Banner, Settings dialog and Categories. Leave a field empty to keep the default text, which appears greyed out in the field. Use the language button in a field to write the text in each of your website's languages.

in1s has default banner text in several languages. If one of your website's languages has no default text, the tab warns you. Visitors reading that language see English wherever you have not written your own text.

Let visitors change their choice

After a visitor has chosen, a small floating Cookie settings button lets them open the settings again. A theme can place a cookie settings link in its footer instead. When the page has that link, the floating button is not added.

Ask everyone again

If you change how you use cookies, click Ask everyone again on the Cookie consent tab and confirm. Every visitor sees the banner again on their next visit, including visitors who have already chosen. Your other unsaved changes on the tab are saved at the same time.

Does the choice carry across my domains?

No. The choice is stored for the address the visitor is on. If your website answers on two addresses, such as www.example.com and shop.example.com, visitors are asked on each one.

Is a record of each visitor's consent kept?

No. The choice is stored only in the visitor's own browser cookie.

Start typing to search the docs.