Embedding
Embed Reading Steps reading experiences directly into your own websites and applications.Embedding features require an Enterprise plan. Contact sales@readingsteps.uk for more information.
Overview
The Reading Steps embed allows you to:- Display the reading interface in your own application
- Maintain your branding and user experience
- Track reading progress through your systems
- Provide seamless single sign-on
Quick start
Add the Reading Steps embed to your page:Authentication
Token-based authentication
Generate a session token for your student:Single sign-on (SSO)
For seamless authentication, configure SSO:- Go to Admin Panel > Integrations > SSO
- Configure your identity provider
- Enable SSO for embeds
- Students are automatically authenticated
Embed options
Reader embed
Display the reading interface:| Parameter | Description |
|---|---|
token | Authentication token |
book_id | Open specific book |
level | Filter to reading level |
theme | light or dark |
Library embed
Display the book library:| Parameter | Description |
|---|---|
token | Authentication token |
level | Filter to reading level |
category | Filter by category |
hide_nav | Hide navigation (true/false) |
Progress embed
Display student progress:JavaScript SDK
For more control, use the JavaScript SDK:SDK methods
SDK events
| Event | Description |
|---|---|
onReady | Embed has loaded |
onBookOpen | Student opened a book |
onBookComplete | Student finished a book |
onLevelChange | Reading level changed |
onError | An error occurred |
Styling
Responsive sizing
Custom themes
Pass theme parameters to match your branding:Security
Allowed domains
Configure which domains can embed Reading Steps:- Go to Admin Panel > Integrations > Embedding
- Add your domains to the allowlist
- Save changes
Content Security Policy
Add Reading Steps to your CSP:Troubleshooting
| Issue | Solution |
|---|---|
| Embed not loading | Check domain is in allowlist |
| Authentication failed | Verify token is valid and not expired |
| Styling issues | Ensure iframe has sufficient dimensions |
| Events not firing | Check SDK is loaded before init |