M
M
Mitiplay22018-08-09 21:46:55
JavaScript
Mitiplay2, 2018-08-09 21:46:55

Adblock is blocking a harmless client-side js script, what's the matter?

I installed an external script on the site to analyze the behavior of the audience.
The script is processed on the client side, and then the data is sent to the server.
When the adblock is enabled, the script is blocked from running. What can be wrong?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
J
jobsdata, 2018-08-09
@jobsdata

In the included AdBlocke. Turn off.

A
Alexander Aksentiev, 2018-08-10
@Sanasol

If this is a regular classic ad block, then in the developer panel it has its own tab in which, when the page loads, it shows what is blocked and by what principle.
8b8a82a1cd2ce563913845c2c747.png

M
Maxim Timofeev, 2018-08-09
@webinar

what's the matter?

The fact that addBlock is shit that works as it wants. There are a lot of variations of this shit, so the logic for determining advertising, too. More often it is the presence in the classes and id "adv" and similar things, blocking, and what else the developers have put in there can only be understood by analyzing a specific version of a specific plugin. I even met the blocking of all elements with possition fixed
Since you did not specify the plugin, there is no code for you, I can advise fortunetellers and mediums.

N
neko911, 2018-08-09
@neko911

As an option, use your own script for this, or if it is critical to load it from an external server, use the import directive in your js, I'm not sure if this will help, but in theory it should.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question