Documentation menuWebsite builders: Hostinger Website Builder

Website builders

Add Loogika to Hostinger Website Builder

You add Loogika to Hostinger Website Builder through the Custom code integration in the website settings. The integration adds your code to every page of the site. The tag goes live when you click Update website.

Last updated .

What do you need before you start?

Copy the script tag for your site from Site Settings in Loogika, under the Tracking Script tab. For Hostinger you add one attribute to it, data-render-head. Your own 12-character site ID stands where the example shows YOUR_SITE_ID:

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

How do you add Loogika to Hostinger Website Builder?

Custom code is one of the integrations of the builder, and it applies to the whole site.

  1. With your site open in the builder, click the More button with three dots at the top. It opens the website settings.
  2. Choose Integrations, then select Custom code.
  3. Paste the tag with the data-render-head attribute.
  4. Save, then publish the change with Update website.

What does the data-render-head attribute do?

The data-render-head attribute tells Hostinger Website Builder to place a script tag in the head of the page. A script tag without the attribute ends up at the bottom of the body, where the builder moves it.

Loogika still works from the end of the body. The attribute only makes the script load earlier on the page.

How do you check that Loogika is installed?

Load the live site in a fresh browser tab and visit a few pages. The pageviews show up in the Loogika dashboard within a few seconds.

Check the live address or the preview, not the editor. Hostinger runs custom code on the published site and in preview only, so the editor never requests script.js.

Why does Hostinger Website Builder not send data to Loogika?

SymptomCauseFix
No request to script.js inside the editorThe builder does not run custom code in the editorTest on the live address or in preview
The page source lacks the tag although you saved itYou saved the code and did not update the site afterwardsClick Update website
The site breaks after you add several code snippetsOne snippet is nested inside anotherPaste the snippets one after another

If the site still fails with several snippets, remove all custom code and update the website. Then put the snippets back one by one, so you see which one causes the fault. The script troubleshooting page covers causes on the Loogika side, such as ad blockers.