Skip to content

Just track a site: visitors with one line of code

Just track it counts the visitors on a site you host anywhere: no plugin, no hosting move and no cookies. You add one line of code to the site, and its visits show up in Xagio.

Use it for a site that isn’t hosted with Xagio and doesn’t run WordPress with the Xagio plugin, such as a Wix, Squarespace, Webflow or Shopify site, or a hand-built HTML site.

  1. Open Websites in the sidebar.
  2. Select Add Website. Under JUST TRACK IT, choose Visitors & AI.
  3. The Just track it window walks you through three steps: Domain, Add the code and First visit.
  4. Enter your site’s domain, for example example.com, and select Get the code.
  5. Copy the line of code and paste it into your site, just before the closing </head> tag. The window shows where to put it on common platforms:
    • WordPress: a header-snippet plugin such as WPCode (Code Snippets > Header & Footer > Header).
    • Wix: Settings > Custom code > Head, all pages.
    • Squarespace: Settings > Developer tools > Code injection > Header.
    • Webflow: Site settings > Custom code > Head code, then Publish.
    • Shopify: Online Store > Themes > Edit code > layout/theme.liquid, before </head>.
    • Google Tag Manager: add it as a new tag in your container.
    • Any other site: the shared header template every page uses. A static site without a shared header needs it on each page.
  6. Open any page of your site. The status says Waiting for the first visit until a visit arrives, then turns green by itself. Select Check now to look right away.

If someone else edits your site, select Email these steps to my developer.

The code is the Xagio visitor counter. It is about 2 KB, loads without slowing the page, sets no cookies and stores no personal data, so you don’t need a consent banner for it.

The site appears in your Websites list as Tracked. Open it to see its visitors on the site’s Overview, or open Traffic & Visibility under REPORTING for the full report: people and page views by day, where visitors came from, countries, campaigns, and visits from AI answers. Visits from scripts and bots that pose as visitors are filtered out and never counted as people.

To follow a site’s Google rankings without connecting it, choose Add Website > JUST TRACK IT > Rankings. See Add sites and keywords to Rank Tracker.

Tracking visitors is free.

  • Still “Waiting for the first visit” after you opened the site: check that the line is inside <head> on the page you opened, and that you published or saved the change on your platform. Then select Check now.
  • “The check failed. Try again in a minute.” Wait a minute and select Check now again.