Ghost Client-side Integration

1. Import JS file in Code injection - e.g. on our Ghost test env it’s on https://ghost.dev.similar.ai/ghost/#/settings/code-injection\

image

Site Header:

<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous">
</script>

Site Footer:

<script src="https://dev-dot-isentropic-snow-282609.ew.r.appspot.com/api/js-internal-linking/?apikey=2ZPhgwLAHkwI1bUgR6HrBfqc6GbXZpg8"></script>

2. Put the <div> code in the right place on the post template: current/content/themes/source/post.hbs

image

<div id="similarai-relatedSearches"></div>

3. Then the links will be shown automatically

image

For the endpoint of our production env and your API key, please talk to our onboarding team on set it up.

Questions, features or bugs?

For any questions or support, please feel free to contact us at hello@similar.ai. Alternatively, suggest improvements or new features for our internal linking tool.