1. Overview
  2. Getting Started
  3. Website Integration

Website Integration

...

Add SiteFellowsJS globally to your website head tag.

<script>
    const firebaseConfig = {
        //Your Firebase configuration
    };
</script>
<script src="https://sf-js-lib.surge.sh/sitefellows.js" data-site-config="your-site-config.json"></script>

Optionally, we can specify a CMS compatibility mode with the data-site-compatibility attribute (currently implemented only sitejet)

<script src="https://sf-js-lib.surge.sh/sitefellows.js" data-site-compatibility="sitejet" data-site-config="your-site-config.json"></script>

On protected pages, additionally can be added:

<noscript>
    <meta http-equiv="refresh" content="0;url=/public-page/" />
</noscript>

© 2024 SiteFellows JS