Website builders
Add Loogika to Carrd
You add Loogika to a Carrd site by pasting a short loader script into the Head field under Embed Code in the site settings. The field requires a Carrd Pro Standard or Pro Plus subscription. The code goes live when you publish the site.
Last updated .
Which Carrd plan do you need?
Custom head code needs Carrd Pro Standard or Pro Plus. Pro Lite and the free plan come without the Embed Code feature, so the Head field does not appear on those sites.
Where do you find your Loogika site ID?
The script tag in Site Settings in the Loogika dashboard, under the Tracking Script tab, contains your site ID. The ID is the 12-character string after siteId= in the tag. Copy it, because you need it in the next step.
How do you add Loogika to a Carrd site?
On Carrd we recommend a small loader in place of the plain script tag. Carrd processes embed code before it prints it, and the loader keeps that processing from rewriting the tag.
- With your site open in the Carrd editor, click the Settings gear at the top right.
- Switch to the Settings tab and find Embed Code further down.
- Paste the code below into the Head field and replace
YOUR_SITE_IDwith your own ID. - Click Save, then Publish.
<script>
(function () {
var s = document.createElement("script");
s.src = "https://app.loogika.com/api/script.js?siteId=YOUR_SITE_ID";
s.defer = true;
document.head.appendChild(s);
})();
</script>
The loader creates the Loogika script tag in the visitor's browser and adds it to the head of the page. It loads the same script as the plain tag does.
Does the code cover a Carrd site with several pages?
Yes. Carrd builds one-page sites by default, and a site with multiple pages requires Pro Plus. On such a site every page loads the head code, so you paste it once.
How do you check that Loogika is installed?
Open the published Carrd site in a new tab. The visit shows 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 helps when the code is on the page and data is still missing.
Why is the Loogika code missing from your Carrd site?
| Symptom | Cause | Fix |
|---|---|---|
| The Head field is not in the settings | The plan is Pro Lite or free | Move the site to Pro Standard or Pro Plus |
| The page source does not contain the code | You saved the site without publishing it | Publish once more from the editor |