All questions

Hi all, can we add Croct with just a script tag? No build pipeline on our site

Asked by Anders Vik on

AVAnders Vik

Hi all. I run growth for a small company and our brochure site is hand-maintained HTML behind a legacy CMS. There is no npm, no build pipeline, nothing modern to hook into.

All the setup guides I have skimmed start with installing a package. Is there a tag-manager style snippet I can paste into the page templates myself, or do I need to pull in a developer for this? I can edit the HTML head directly, that much I have access to

Was this helpful?

2 answers

PRPriya Raghavan

You can do this yourself, no build step required. Add the script tag to the page head and call plug with your application ID:

<script src="https://cdn.croct.io/js/v1/lib/plug.js"></script><script>    croct.plug({appId: 'APPLICATION_ID'});</script>

Replace APPLICATION_ID with the ID from your dashboard. That is the entire install. If your legacy CMS lets you inject snippets globally, put it there so every page gets it, same idea as a GTM container tag.

Was this helpful?
AVAnders Vik

Pasted it into the global head template and it went through on the first try. Thanks Priya.

Ttomdev83

One thing to add since you asked about doing it without a developer: the verification is no-code too. After the snippet is live, open the Integration page in the Croct dashboard and wait for the green "Received traffic in the past 24 hours" indicator. If it stays grey, the snippet is not firing (usually a template that does not include the shared head).

Was this helpful?
Still have questions?