Answers about javascript
Questions and answers from the Croct community about javascript.
Our Sanity frontend is plain JS, not Next. Can I still use the integration?
Our Sanity site is a hand-rolled vanilla JS frontend, no Next, no React, nothing. Most examples I find assume a framework and a provider component, so I…
Getting "Not plugged in" in one place and "Conflicting app ID" in another
Hey, I am the intern who got handed the A/B testing project this sprint so bear with me. The site already had a Croct script tag install in the base layout…
Should we install Croct through Google Tag Manager or the SDK directly?
I sit between marketing and engineering, and I own our GTM container. We are setting up Croct and I want to make the right call before asking devs for sprint…
croct.identify throws Invalid user ID when passing our numeric customer ID
Working on an ecommerce site in Tokyo, @croct/plug 0.16 on the storefront. On login we call croct.identify(user.id) where id comes from our backend as a…
Legacy jQuery site, can I fetch slot content and inject it into the DOM myself?
I maintain a site that was built in 2009 and it is jQuery all the way down. No bundler, no build step, no npm. Just script tags and a server that serves HTML…
Hi all, can we add Croct with just a script tag? No build pipeline on our site
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…