How to connect Fomo with Teachable
Teachable is the leading media platform for online teachers.
If you host content on Teachable, you can connect your account with Fomo to showcase new student purchases on your website, in real-time.
Step 1 - Enable Teachable
While logged in to Fomo, navigate to Notifications, click ‘Add Notifications’, then ‘All Notifications’. Search for 'Teachable' and click to open the integration.
Click 'Connect'.
This will return a 'Webhook URL' which we'll use inside Teachable admin dashboard:
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509e6f5940934e140f3db2/teachable_1.png)
Step 2 - Enable Fomo
While logged in to Teachable, visit Settings > Webhooks in the left-hand panel:
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509e6f1f3fa9421e2871ab/teachable-settings-webhooks.png)
Select 'New Webhook' and enter these details:
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509e701f3fa9421e2871ac/webhook-details-teachable-fomo.png)
Use your Webhook URL from Step 1.
Select "all" for Event Type.
Note: all new Teachable webhooks will register as pending until the first webhook is successfully sent.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509e70d593d719515c9a4a/webhook.png)
3. Embed your Fomo snippet
From within Fomo, you can access your snippet by clicking on 'Sites' top-left, selecting your site, and then Settings > Embed.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/663d13205027f87fcc6be6f0/embed_snippet_main.png)
Copy this code snippet, and then head over to Teachable in a new tab.
From here, go into the Admin section of teachable, click on Site from the far left menu, and select 'code snippets'. From here, you can paste your Fomo snippet into the 'Head Code Snippets' section.
Hit 'Save' and you're good to go!
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509e70d593d719515c9a4b/teachable-code-snippet.png)
4. You're done!
All future student enrollments will be sent to your Fomo event feed, and shown on your website in real-time.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509e71e1989867dcefd124/97bn25uin4aqjxhb5kyafyzjbqvsq5o9o5fajuq4ofp5b42ykf_3F1474322883.png)
To edit the message structure of your Fomo notifications, simply visit the Notifications tab while logged into Fomo, locate the Teachable template, and click 'edit'. Feel free to rename this template as well.
You can see when webhooks are sent via the Teachable UI (see Step 2 above). If you see that webhooks are being sent but don't see events in your Fomo account (Events tab), ping us at hello@fomo.com and we'll check it out!