Embed Taku as IFrame

Sometimes you may not want Taku to show up as a floating popup, but instead want it to be part of your website. For example, in the sidebar of your website.

You can do this using an iframe. Just copy the code below and insert it where you want Taku to be displayed.

1
<iframe id="taku-news" width="500" height="500" frameborder="0"></iframe>
2
<script>
3
!function(t,e,a,n){function c(){if(!e.getElementById(a)){var t=e.getElementsByTagName(n)[0],c=e.createElement(n);c.type="text/javascript",c.async=!0,c.src="https://cdn.taku-app.com/js/latest.js",t.parentNode.insertBefore(c,t)}}if("function"!=typeof t.Taku){var s=function(){s.q.push(arguments)};s.q=[],t.Taku=s,"complete"===e.readyState?c():t.attachEvent?t.attachEvent("onload",c):t.addEventListener("load",c,!1)}}(window,document,"taku-js","script");
4
5
window.Taku('news:iframe:boot', {
6
api_public_key: 'Your public API key. You will get it after sign up.'
7
});
8
</script>
Below, you can also check the preview of how the widget will look on your website and change its sizing.
Width
300px
100%
Height
300px
100%