Skip to the content

Add Google Analytics, Meta Pixel or your own code

Your own measurement and advertising tools on the site, with the cookie banner that appears by itself and starts nothing before the visitor agrees.

Xanawan always counts the visits without cookies (see Read the statistics of your site). Add your own tools only if you need them: on the page of your site, open Statistics and code.

Google Analytics 4

Paste the Measurement ID: it starts with G-, under Admin › Data streams in Google Analytics. Visits, sources and conversions then go to your Google Analytics account.

Meta Pixel

Paste the Pixel ID: only digits, in Meta Events Manager › Data sources. It measures your Facebook and Instagram ads and lets you show ads to visitors.

Own code

The code given by another tool, for example a chat or another statistics service, added at the end of every page. Paste it exactly as the tool gives it, then choose When it starts:

  • With consent for statistics: for a statistics or heat-map tool;
  • With consent for marketing: for an advertising or remarketing tool;
  • Always, without consent: only for a tool that sets no tracking cookies, such as some chats. If unsure, choose a category above.

You are responsible for what the code does on your site. Own code is available with a paid subscription.

Click Save, then publish the site.

With Google Analytics, Meta Pixel or own code that needs consent, the site shows a banner on the first visit: the visitor accepts, refuses or chooses, and nothing starts before that. The choice can be changed from the footer.

Warning — after a change, have the legal pages written again so that the cookie policy describes these tools: Company details and legal pages › Write the legal pages again.

Didn’t find your answer?Write to us and we answer by email.

Write to us