Body Tag - i hate you!

Hey, i have to insert this code under my <body> to use custom chat bot from facebook.

i want the bot on all Pages, so how i can do this? :(



Code:
<!-- Load Facebook SDK for JavaScript --> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ xfbml : true, version : 'v3.2' }); }; (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = 'https://connect.facebook.net/de_DE/sdk/xfbml.customerchat.js'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <!-- Your customer chat code --> <div class="fb-customerchat" attribution=setup_tool page_id="540303943138498" theme_color="#977e42" logged_in_greeting="Hallo! Gerne helfen wir Ihnen bei Fragen zu unseren Produkten. :)" logged_out_greeting="Hallo! Gerne helfen wir Ihnen bei Fragen zu unseren Produkten. :)"> </div>

Comments

Sign In or Register to comment.