Skip to content

Track your website

Add the website you already have, paste one short code on it, and see when it starts counting visits. Set goals for the wins you care about.

Opsidian doesn’t host your website. Keep the one you have on Wix, WordPress, Squarespace or wherever it is, add it here, and paste one short piece of code on it. Opsidian then counts its visits and the wins you set as goals.

  1. Open Website and select Add a website.
  2. Give it a name, paste any page of it as its address, and pick what it’s built with. If your company has branches, pick the one it’s for, or leave All branches.
  3. Select Add website. Its page opens with your code.

Opsidian counts visits to your address with and without www. To track a second address, add it as another website.

On the website’s page, Code for your website shows one line. Select Copy, then follow the short steps for your platform on the tabs below it:

  • Wix: Settings, Custom code, add it to the Head on all pages, then publish.
  • WordPress: use a free header and footer code plugin and paste it in the Header.
  • Squarespace: Settings, Advanced, Code injection, paste it in the Header. This needs a Business plan or higher.
  • Plain HTML: paste it just before the closing head tag of each page, or of the template every page shares.

The code is the same on every page. It doesn’t use cookies and never records what visitors type.

The status at the top of the page and in the list starts as Waiting for the first visit. Open your website once after you paste the code. When that visit arrives it changes to Seen with the day of the last visit. If it doesn’t change, check that you published the site and that your caching plugin isn’t serving an old copy.

A goal counts a win on your website. Select Add a goal and choose when it counts:

  • Someone sends a form: counts every form sent on the website.
  • Something happens on a page: counts an event you name, like quote_request. Add data-opsidian-event="quote_request" to the button or link on your website.

What a goal counts can’t be changed. To change it, remove the goal and add a new one. Counts for a goal you remove stay in your reports.

Open ⋯ at the top of the website’s page.

  • Make a new key replaces the key in your code. The old code stops counting at once, so use it only if the code ended up somewhere it shouldn’t, then paste the new code on your website.
  • Remove website stops counting. Visits already counted stay in your reports. To track it again, add it again.