Configure YME source

1. Access the TTO CDP backend and install the YME repository.

After successful installation, a webhook address for the yme source will be automatically generated. The next step is to set it into the yme webhook!

Please note that the YME installation code needs to be adjusted as follows, which is slightly different from the normal one.

 function setTtoCdpUserId() { if (window.ET && window.tkcare) { tkcare.setExternalId(ET.getClid()); window.ET.setExternalId('yme', tkcare.getIdentifyId()); } else { setTimeout(function () { setTtoCdpUserId(); }, 500); } } (function(n, o, t, i, f) { n[i] = {}; var m = ['init', 'setOpts']; n[i]._c = []; m.forEach((me) =>(n[i][me] = function() { n[i]._c.push([me, arguments]) }) ); var elt = o.createElement(f); elt.type = 'text/javascript'; elt.async = true; elt.src = t; var before = o.getElementsByTagName(f)[0]; before.parentNode.insertBefore(elt, before) })(window, document, 'https://care-admin.topkee.top/embed/embed.umd.min.js', 'tkcare', 'script'); tkcare.init({ group_id: 'XXXX', //修改YME分組ID script_sub_id: '', locale: 'en', //修改語言customize_lang: { open_messenger_txt: 'Chat On Web' //修改文本}, initedCallback: function() { if (window.ET) { setTtoCdpUserId(); } else { setTimeout(function () { setTtoCdpUserId(); }, 500); } } }); //GTM添加代碼<script> function setTtoCdpUserId() { if (window.ET && window.tkcare) { tkcare.setExternalId(ET.getClid()); window.ET.setExternalId('yme', tkcare.getIdentifyId()); } else { setTimeout(function () { setTtoCdpUserId(); }, 500); } } (function(n, o, t, i, f) { n[i] = {}; var m = ['init', 'setOpts']; n[i]._c = []; for (var k = 0; k < m.length; k++) { (function(method) { n[i][method] = function() { n[i]._c.push([method, arguments]); }; })(m[k]); } var elt = o.createElement(f); elt.type = 'text/javascript'; elt.async = true; elt.src = t; var before = o.getElementsByTagName(f)[0]; before.parentNode.insertBefore(elt, before); })(window, document, 'https://care-admin.topkee.top/embed/embed.umd.min.js', 'tkcare', 'script'); tkcare.init({ group_id: 'XXXX', script_sub_id: '', locale: 'en', customize_lang: { open_messenger_txt: 'Chat On Web' }, initedCallback: function() { if (window.ET) { setTtoCdpUserId(); } else { setTimeout(function () { setTtoCdpUserId(); }, 500); } } }); </script> function setTtoCdpUserId() { if (window.ET && window.tkcare) { tkcare.setExternalId(ET.getClid()); window.ET.setExternalId('yme', tkcare.getIdentifyId()); } else { setTimeout(function () { setTtoCdpUserId(); }, 500); } } (function(n, o, t, i, f) { n[i] = {}; var m = ['init', 'setOpts']; n[i]._c = []; m.forEach((me) =>(n[i][me] = function() { n[i]._c.push([me, arguments]) }) ); var elt = o.createElement(f); elt.type = 'text/javascript'; elt.async = true; elt.src = t; var before = o.getElementsByTagName(f)[0]; before.parentNode.insertBefore(elt, before) })(window, document, 'https://care-admin.topkee.top/embed/embed.umd.min.js', 'tkcare', 'script'); tkcare.init({ group_id: 'XXXX', //修改YME分組ID script_sub_id: '', locale: 'en', //修改語言customize_lang: { open_messenger_txt: 'Chat On Web' //修改文本}, initedCallback: function() { if (window.ET) { setTtoCdpUserId(); } else { setTimeout(function () { setTtoCdpUserId(); }, 500); } } });
 //GTM添加代碼<script> function setTtoCdpUserId() { if (window.ET && window.tkcare) { tkcare.setExternalId(ET.getClid()); window.ET.setExternalId('yme', tkcare.getIdentifyId()); } else { setTimeout(function () { setTtoCdpUserId(); }, 500); } } (function(n, o, t, i, f) { n[i] = {}; var m = ['init', 'setOpts']; n[i]._c = []; for (var k = 0; k < m.length; k++) { (function(method) { n[i][method] = function() { n[i]._c.push([method, arguments]); }; })(m[k]); } var elt = o.createElement(f); elt.type = 'text/javascript'; elt.async = true; elt.src = t; var before = o.getElementsByTagName(f)[0]; before.parentNode.insertBefore(elt, before); })(window, document, 'https://care-admin.topkee.top/embed/embed.umd.min.js', 'tkcare', 'script'); tkcare.init({ group_id: 'XXXX', script_sub_id: '', locale: 'en', customize_lang: { open_messenger_txt: 'Chat On Web' }, initedCallback: function() { if (window.ET) { setTtoCdpUserId(); } else { setTimeout(function () { setTtoCdpUserId(); }, 500); } } }); </script> 

2. Access the YME backend and configure the webhook address.

  1. Click Service Management > Webhook (If you haven't subscribed, click Subscribe).

  1. Go to the webhook service > push endpoints > add endpoint

  1. Enter the webhook address from the YME repository and check the "Care Service" event ( do not select "All Events ").

III. Testing and Acceptance

  1. Enter the website and initiate a chat consultation.

  1. Go to the CDP backend and check if there are any YMe push Contact events.

null
Solution
Online retail
B2B
Law and Accounting
O2O retail
Restaurant
Venue rental
Live retail
Education
Property and Real estate
Finance insurance
Pet
Engineering and Transportation
Medical beauty
Jewelry
Car repair
Solution
Online retail
B2B
Law and Accounting
O2O retail
Restaurant
Venue rental
Live retail
Education
Property and Real estate
Finance insurance
Pet
Engineering and Transportation
Medical beauty
Jewelry
Car repair
TTO FROM TOPKEE's BRANDS
© 2024 Topkee All rights reserved