D
D
dmitru2019-05-15 15:28:54
JavaScript
dmitru, 2019-05-15 15:28:54

Paste JS code into SCRIPT?

There is a feedback button on the site. You need to insert a line with the code onclick=roistat.event.send('cart_view') into it.
Code for inserting the button:

<script>
        (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.bitrix24.ru/b2114831/crm/site_button/loader_10.js');
</script>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2019-05-15
@dmitru

<script>
document.getElementById('buttonid').onclick = roistat.event.send('cart_view');
<script>

What is your question?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question