A
A
Alexander Sevirinov2018-06-11 05:57:05
JavaScript
Alexander Sevirinov, 2018-06-11 05:57:05

How to find a duplicate script in bitrix?

I paste the code in header.php before the closing tag

<script type="text/javascript">
var __cs = __cs || [];
__cs.push(["setCsAccount", "r2SUDNORm1gfqBLnmsTKxXUGPDXE9zcA"]);
</script>
<script type="text/javascript" async src="//app.comagic.ru/static/cs.min.js"></script>

After clearing the cache and without pasted code is duplicated except for the line
var __cs = __cs || [];
__cs.push(["setCsAccount", "r2SUDNORm1gfqBLnmsTKxXUGPDXE9zcA"]);

Insert another key
var __cs=__cs||[];__cs.push(["setCsAccount","WwXzXvFeSlrSyfGXaFudK4sZALPhnKOg"]);

Script error in console:
2018-06-11__05-55-41.png
How can I find where it comes from? I cleared the cache, no caching systems are used on the server, only the built-in bitrix tools.
Already dug everything. I downloaded all the site files, php-storm does not find anything.
PS
the service https://www.uiscom.ru/ is used for call tracking, i.e. change of phone number on the site.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Nikolaev, 2018-06-11
@gromdron

Actually, Bitrix has a very mediocre attitude to this issue, and the question here is much deeper: how to find duplication of information on the site in general.
Read about grep

A
Ainur Valiev, 2019-07-03
@vaajnur

there was a commented duplicate of the script, it was pulled up

<!-- <script type="text/javascript" async src="//app.comagic.ru/static/cs.min.js"></script> -->

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question