Documentation menuWebsite builders: Squarespace

Website builders

Add Loogika to Squarespace

You add Loogika to Squarespace by pasting the script tag into the Header field of the Code Injection panel. Squarespace then puts the tag on every page, and you do not edit a template. Code Injection is not included in the Basic plan.

Last updated .

Which Squarespace plan do you need?

The Core, Plus and Advanced plans include Code Injection, as do some legacy plans. The Basic plan does not have it. If Code Injection is missing from your settings, the plan of the site is the likely reason.

What do you need before you start?

Copy your script tag from the Tracking Script tab under Site Settings in the Loogika dashboard. The tag looks like the example below, with your 12-character site ID where it says YOUR_SITE_ID:

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

How do you add Loogika to Squarespace?

The Header field of Code Injection loads the tag on the whole site.

  1. Open Settings from the Home Menu.
  2. Open Website, then Code Injection. Depending on your Squarespace version, it is listed under Advanced or Developer.
  3. Paste the tag into the Header field.
  4. Click the Save button in the top part of the panel.

The Loogika tag uses defer, so the browser shows your page before it runs the script. A tag in the Header field does not hold up rendering.

Which Code Injection field should you use?

Use Header. The Footer field also loads the script on every page, so it works as a second choice.

Do not use the two other fields, Lock Page and Order Confirmation Page. Each of them applies to that single page only. A tag in the Order Confirmation Page field tracks the end of the checkout and nothing else.

How do you check that Loogika is installed?

Visit your Squarespace site in another browser tab and open a few pages. The pageviews show up in the Loogika dashboard within a few seconds.

If the dashboard stays empty, check whether the page source contains script.js?siteId=. When the tag is there and no data arrives, the script troubleshooting page lists the usual causes, such as an ad blocker in your own browser.

Why is only the checkout tracked on Squarespace?

The tag sits in the Order Confirmation Page field. Move it to the Header field and save. Loogika then receives pageviews from all pages of the site.