Documentation menuWebsite builders: Wix

Website builders

Add Loogika to Wix

You add Loogika to Wix in the site dashboard, where the Custom Code panel takes the script tag. Paste the script tag there, set it to load once on all pages and place it in the head. Custom code on Wix requires a Premium plan and a connected domain.

Last updated .

What does Wix require for custom code?

Wix requires a Premium plan and a connected domain before you can add custom code. Free Wix sites do not have the feature. The Custom Code panel only appears in Settings when the site has both.

What do you need from Loogika?

You need the script tag for your site. Copy it from Site Settings in the Loogika dashboard, under the Tracking Script tab. The site ID in the tag is a 12-character string, shown here as YOUR_SITE_ID:

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

How do you add Loogika to a Wix site?

In the Custom Code panel you decide two things: the pages that load the code and its position in the document.

  1. Open the dashboard of your site and go to Settings.
  2. The Development & integrations section holds Custom Code. In an older dashboard, look under Marketing & SEO for Tracking Tools & Analytics.
  3. Click + Add Custom Code and paste the tag into the code box.
  4. Give the code a name, for example Loogika.
  5. For Add Code to Pages, pick All pages together with Load code once.
  6. For Place Code in, pick Head.
  7. Click Apply.

Why should you choose Load code once?

Wix moves between pages inside the browser without a full page load. Loogika follows those page changes on its own and records a pageview for each one. SPA Navigation in Site Settings controls that behaviour, and it is on for a new site.

The option Load code on each new page would add the script again on every page change. You would then see duplicate pageviews in your reports.

How do you check that Loogika is installed?

Open your Wix site on its connected domain in a fresh browser tab and visit a few pages. The pageviews show up in the Loogika dashboard within a few seconds.

If the dashboard stays empty, open the page source and look for script.js?siteId=. The script troubleshooting page lists further checks, such as ad blockers.

Why does Wix show no data or duplicate pageviews?

SymptomCauseFix
Custom Code is missing from SettingsA Premium plan or a connected domain is not in placeAdd both. The panel appears afterwards
Pageviews are counted twiceThe entry uses Load code on each new pageOpen the entry and change the option to Load code once