Add Coursefinch to your own website

If your team built your website, or it runs on another system, the steps are the same: paste the line where every page can load it.

A button on every page

  1. Open the template or layout that every page shares.
  2. Paste this line just before the closing body tag:
    <script src="https://app.coursefinch.co.uk/widget/coursefinch.js" data-coursefinch-launcher="your-college" defer></script>

A box on one page

  1. Paste these two lines where the box should appear:
    <div data-coursefinch="your-college"></div>
    <script src="https://app.coursefinch.co.uk/widget/coursefinch.js" defer></script>

Content Security Policy

If your website sets a Content Security Policy, allow these.

DirectiveValue to add
script-srchttps://app.coursefinch.co.uk https://challenges.cloudflare.com
connect-srchttps://app.coursefinch.co.uk
frame-srchttps://challenges.cloudflare.com
font-srchttps://app.coursefinch.co.uk

Check it is working

  1. Open a page of your website in a private browser window. The button appears in the bottom corner.
  2. Select it and ask a question about your college.
  3. If nothing appears, open the browser console. A Content Security Policy error means an entry above is missing.
  4. If your website combines, delays or moves scripts to make pages faster, leave this one out of that.

Documentation for IT teams