Быстрое подключение
Онлайн-чат Битрикс24
<!-- Код Roistat-->
<script>
//вставка код
window.roistatVisitCallback = function (visitId) {
// код виджета Битрикс24
(function(w,d,u){
var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/60000|0);
var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
})(window,document,'https://cdn-ru.bitrix24.ru/.../crm/site_button/loader_1_s5d240.js');
//вставка кода
window.Bitrix24WidgetObject = window.Bitrix24WidgetObject || {};
window.Bitrix24WidgetObject.handlers = {
'form-init': function (form) {
form.presets = {
'roistatID': visitId
};
}
};
}
</script>
<!-- BEGIN BITRIX24 WIDGET INTEGRATION WITH ROISTAT -->
<script>
(function(w, d, s, h) {
w.roistatLanguage = '';
var p = d.location.protocol == "https:" ? "https://" : "http://";
var u = "/static/marketplace/Bitrix24Widget/script.js";
var js = d.createElement(s); js.async = 1; js.src = p+h+u; var js2 = d.getElementsByTagName(s)[0]; js2.parentNode.insertBefore(js, js2);
})(window, document, 'script', 'cloud.roistat.com');
</script>
<!-- END BITRIX24 WIDGET INTEGRATION WITH ROISTAT -->
<!-- Код Roistat-->
<!-- BEGIN BITRIX24 WIDGET INTEGRATION WITH ROISTAT -->
<script>
(function(w, d, s, h) {
w.roistatLanguage = '';
var p = d.location.protocol == "https:" ? "https://" : "http://";
var u = "/static/marketplace/Bitrix24Widget/script.js";
var js = d.createElement(s); js.async = 1; js.src = p+h+u; var js2 = d.getElementsByTagName(s)[0]; js2.parentNode.insertBefore(js, js2);
})(window, document, 'script', 'cloud.roistat.com');
</script>
<!-- END BITRIX24 WIDGET INTEGRATION WITH ROISTAT -->
<!-- Код Roistat-->
//вставка кода
<script data-b24-form="...." data-skip-moving="true">
window.roistatVisitCallback = function (visitId) {
window.addEventListener('b24:form:init', (event) => {
let form = event.detail.object;
form.setProperty("roistatID", visitId);
});
//Код формы
(function(w,d,u){
var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/180000|0);
var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
})(window,document,'https://cdn-ru.bitrix24.ru/..../crm/form/loader_4.js');
};
</script>
<script>
window.roistatVisitCallback = function (visitId) {
$('[href*=".bitrix24.ru/form/"]').attr('href', function(i, originalValue) {
var hasQueryMark = originalValue.match(/\?/);
var queryDelimiter = hasQueryMark ? '&' : '?';
return `${originalValue}${queryDelimiter}roistat_visit=${visitId}`;
});
};
</script>
<!-- Код Roistat-->
<script data-b24-form="inline/3/heu5ia" data-skip-moving="true">
window.roistatVisitCallback = function (visitId) {
window.addEventListener('b24:form:init', (event) => {
let form = event.detail.object;
form.setProperty("roistatID", visitId);
});
(function(w,d,u){
var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/180000|0);
var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
})(window,document,'https://cdn-ru.bitrix24.ru/..../crm/form/loader_4.js');
// Код формы
(function(w,d,u){
var s=d.createElement('script');s.async=1;s.src=u+'?'+(Date.now()/60000|0);
var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
})(window,document,'https://cdn.bitrix24.ru/.../crm/site_button/loader_1_mgw0fn.js');
window.Bitrix24WidgetObject = window.Bitrix24WidgetObject || {};
window.Bitrix24WidgetObject.handlers = {
'form-init': function (form) {
form.presets = {
'roistatID': visitId
};
}
}
}
</script>
Согласие на обработку персональных данных и акцепт оферты