Skip to content

Add MyAlice Chatbot to WordPress



/*
//ADD MYALICE
function my_footer_script() {
?>
<script>

	// Put this code snippet inside script tag
	(function () {
		var div = document.createElement('div');
		div.id = 'icWebChat';
		var script = document.createElement('script');
		script.type = 'text/javascript';
		script.async = true;
		script.src = 'https://webchat.getalice.ai/index.js';
		var lel = document.body.getElementsByTagName('script');
		var el = lel[lel.length - 1];
		el.parentNode.insertBefore(script, el);
		el.parentNode.insertBefore(div, el);
		script.addEventListener('load', function () {
			ICWebChat.init({ selector: '#icWebChat',
							platformId: '7726',
							primaryId: 'dac43e86ac2911ecbe130242ac120008',
							token: '774fe0287a0038a903a40c93a3a5de56a61c846ebcd93d13' });
		});
	})();

</script>
<?php
}
add_action( 'wp_footer', 'my_footer_script' );
*/

Dieser Beitrag hat 0 Kommentare

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

An den Anfang scrollen