Documentation menuWebsite builders: Weebly

Website builders

Add Loogika to Weebly

You add Loogika to a Weebly site by pasting the script tag into Header Code under the SEO settings. Weebly prints that field in the head of every page, so you do not edit the theme. The tag goes live when you publish the site.

Last updated .

What do you need before you start?

You need the script tag from the Loogika dashboard. Open Site Settings and copy it from the Tracking Script tab. Your 12-character site ID fills the place of YOUR_SITE_ID in this example:

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

How do you add Loogika to a Weebly site?

Weebly is now part of Square, and the site-wide Header Code field sits under the SEO settings of the editor.

  1. With your site open in the Weebly editor, choose Settings, then SEO.
  2. Paste the tag into Header Code and click Save.
  3. Click Publish.

Some editors have no Settings tab. In that case you find the same header code option in the Square dashboard, under Website, then General Settings.

Does the site-wide Header Code cover blog posts?

Yes. Header Code at site level covers every page, and blog posts are included.

The page settings of each Weebly page contain a Header Code box of their own. That box is for code that belongs to one page, and the Loogika tag does not need it.

You can, but Header Code is the better field. Weebly includes both fields on every page, so the tag works from either one. Code in the footer loads later, and Loogika then misses visitors who leave before the page has finished loading.

How do you check that Loogika is installed?

Load the published site in a fresh browser tab and visit a few pages. 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 covers the cases where the tag is present and the data is not.

Why is the Loogika tag missing or doubled on Weebly?

SymptomCauseFix
The tag is saved, but the page source does not contain itThe site has not been published since the changeEach change to header code needs a click on Publish
The tag appears twice in the page sourceIt was added site-wide and on single pagesRemove the page entries and leave the one under Settings, then SEO