Frontend IntegrationWeb ObjectInstallation

Installation

The npm package is @usesophi/sophi-web-object. Artifacts live under dist/ in the package.

The npm package is @usesophi/sophi-web-object. Artifacts live under dist/ in the package.

FileUse case
sophi.min.jsProduction: <script src="..."> or GTM Custom HTML
sophi.jsDebugging (source maps, readable bundle)
sophi.esm.jsBundlers / dynamic import

jsDelivr CDN

URLResolves to
https://cdn.jsdelivr.net/npm/@usesophi/sophi-web-object@latest/dist/sophi.min.jsLatest published version
https://cdn.jsdelivr.net/npm/@usesophi/sophi-web-object@x.y.z/dist/sophi.min.jsPinned version (replace x.y.z)
Version pinning

@latest is fine for development. For production, pin a semver in the URL (or in a GTM Constant — see GTM integration) so upgrades are explicit.

Where to go next

Step-by-step setup lives in one of these pages—pick one and follow it through:

  • GTM integration — Google Tag Manager, consent-gated load, upgrade path via a Constant variable.
  • Integration guide — Choosing GTM vs script vs npm, best practices, and a short events cheat sheet.

For copy-paste HTML and npm snippets without the full decision tree, the integration guide is the quickest read.

Next steps

On this page