Skip to content

Instantly share code, notes, and snippets.

@mathiasmoeller
Created June 26, 2018 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathiasmoeller/b0a494021aabf30db26d99551078ebaf to your computer and use it in GitHub Desktop.
Save mathiasmoeller/b0a494021aabf30db26d99551078ebaf to your computer and use it in GitHub Desktop.
How to integrate the STOMT Feed widget in your website
<div id="stomt_feed"></div> <!-- place this where the feed should be -->
<script>
// Include the STOMT JavaScript SDK
(function(w, d, n, r, t, s){
w.Stomt = w.Stomt||[];
t = d.createElement(n);
s = d.getElementsByTagName(n)[0];
t.async=1;
t.src=r;
s.parentNode.insertBefore(t,s);
})(window, document, 'script', 'https://www.stomt.com/widget.js');
// Adjust the 'APP_ID' to your application id
// you can find it here: https://www.stomt.com/YOUR_PAGE/apps
Stomt.push(['addFeed', {appId: 'APP_ID'}]);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment