Documentation menuCourses and communities: Circle

Courses and communities

Add Loogika to Circle

You add Loogika to a Circle community by pasting the script tag into the Head code snippets field under Settings, then Code snippets. Circle adds that code to the head on all pages, so a single paste reaches both the public pages and the pages members see after login.

Last updated .

What do you need before you start?

Copy your script tag from Site Settings in Loogika, under the Tracking Script tab. It looks like this, with your own site ID in place of YOUR_SITE_ID:

<script src="https://app.loogika.com/api/script.js?siteId=YOUR_SITE_ID" defer></script>

Circle includes custom CSS and JavaScript snippets on all its current plans, which are Professional, Business and Circle Plus. You need admin access to the community.

How do you add Loogika to Circle?

The tag goes into one field in the community settings.

  1. As an admin, open your community and then Settings.
  2. Open Code snippets.
  3. Paste the tag into the Head code snippets field.
  4. Click Save.

Circle has no publish step for code snippets. The tag is live on the whole community as soon as you save.

Does Loogika track each space and post in Circle?

Yes. Circle is a single-page app, which means it changes the address without loading a new page when a member opens a space, a post or a course. Loogika records each of those address changes as a pageview.

The setting behind that behaviour is SPA Navigation in Site Settings. It is on for a new site, so you only need to check it if you turned it off earlier.

How do you check that Loogika is installed?

Open your community in another tab and visit a few spaces. The pageviews show up in the Loogika dashboard within a few seconds.

If nothing arrives, open the page source and look for script.js?siteId=. The script troubleshooting page lists the other common causes.

Why does Circle not send data to Loogika?

CauseFix
The tag sits inside a postCustom HTML that you embed in a post only applies to that post. Move the tag to Head code snippets
Your own visits are missingCircle runs head code for admins too. Check whether an exclusion rule in Site Settings in Loogika removes your IP address
The community uses two addressesYour custom domain and yourcommunity.circle.so both get the same head code from Circle. Keep both under one site in Loogika so a visit is not split in two