Title: Ad Blocking issue
Last modified: September 2, 2023

---

# Ad Blocking issue

 *  Resolved [annedav](https://wordpress.org/support/users/annedav/)
 * (@annedav)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/ad-blocking-issue/)
 * Hi,
 * A couple of months ago, I had to deactivate the adblocking because my users weren’t
   able to read the site, even though they deactivated the adblocker.
 * I’ve been losing revenues, so I want to activate this function again. But the
   function doesn’t seem to work. When the adblocker is on, adinserter is not recognizing
   it. If I look into the status, it says that it is unknown.
 * How can I fix this. thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fad-blocking-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/ad-blocking-issue/#post-17020945)
 * Hello,
 * ad blocking detection is a very difficut task and is never 100%. It is like a
   cat-and-mouse game. As soon you implement something to avoid detection, ad blockers
   get updated to detect what you did.
 * Ad blocking detection uses JavaScript code to check presence of some elements
   that are blocked by most ad blockers. However, ad blockers can block that code
   so this is an endless game.
 * In order for ad blocking detection to work you need to have error free pages.
   Currently there is an error, very likely caused by too aggressive optimization:
 *     ```wp-block-code
       Uncaught TypeError: Cannot read properties of undefined (reading 'doAction')
   
       https://astro.qc.ca/wp-content/cache/wpo-minify/1693614676/assets/wpo-minify-header-463b22cc.min.js
       ```
   
 * I would suggest to disable JavaScript code optimization first to get rid of this
   error.
 * Then you need to enable [remote debugging](https://wordpress.org/support/topic/ad-inserter-support-forum-before-you-ask-for-help/)
   and describe how you tested – ad blocker and page used for the test.
 *  Thread Starter [annedav](https://wordpress.org/support/users/annedav/)
 * (@annedav)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/ad-blocking-issue/#post-17021128)
 * I deactivated the javascript optimization.
 * The remote debugging is activated.
 * Tried in Edge, Safari and Firefox, it is always the same thing. The adblocking
   feature does not work. When
 * When I activate the adblocking status : [Horoscopes – Centre astrologique Michèle Perras](https://astro.qc.ca/?ai-debug-adb-status=1)
   it does recognize when the adblocker is inactive but when it is active it is 
   unknown. Therefore the popup message doesn’t appear.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/ad-blocking-issue/#post-17021755)
 * There are still JavaScript errors:
 *     ```wp-block-code
       Uncaught TypeError: Cannot read properties of undefined (reading 'doAction')
           at general.min.js?ver=5.8.7:1:7417
   
       https://astro.qc.ca/wp-content/plugins/essential-addons-for-elementor-lite/assets/front-end/js/view/general.min.js?ver=5.8.7
       ```
   
 * It seems it is caused by essential-addons-for-elementor-lite plugin.
 * Please check the console in the browser for details.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Ad Blocking issue’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/ad-blocking-issue/#post-17021755)
 * Status: resolved