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
- Open the template or layout that every page shares.
- 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
- 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.
| Directive | Value to add |
|---|---|
| script-src | https://app.coursefinch.co.uk https://challenges.cloudflare.com |
| connect-src | https://app.coursefinch.co.uk |
| frame-src | https://challenges.cloudflare.com |
| font-src | https://app.coursefinch.co.uk |
Check it is working
- Open a page of your website in a private browser window. The button appears in the bottom corner.
- Select it and ask a question about your college.
- If nothing appears, open the browser console. A Content Security Policy error means an entry above is missing.
- If your website combines, delays or moves scripts to make pages faster, leave this one out of that.