How To Debug WordPress Plugin Ad Inserter

This article will tell you how to debug the WordPress plugin ad inserter.

1. Enable Ad Inserter Debug Function.

  1. First, you need to enable the debug function in the WordPress Ad Inserter plugin.
  2. Login to your WordPress website dashboard.
  3. Then click the Settings —> Ad Inserter menu item on the left side.
  4. Click the Ad Inserter General Settings tab ( gear tab ) on the page right side.
  5. Then click the Debugging tab below it.
  6. Check the Debugging functions in admin toolbar and Remote debugging checkboxes.
  7. Click the Save Settings button to save the settings to take effect.

2. How To Debug WordPress Ad Inserter Plugin Steps.

  1. After you enable the Ad Inserter plugin’s debug checkboxes, you can see there is an Ad Inserter debug menu list on the article page top area when you view the article page in the WordPress manager dashboard.
    ad-inserter-debug-menu-items-when-view-article
  2. There are 7 menu items ( Label Blocks, Show Positions, Show HTML Tags, Disable Insertion, Ad Blocking Status, Simulate Ad Blocking, Log Processing ) in the debug menu list.
  3. When you click one menu item in the above list, it will show a debug banner with the debugging text on the page top or bottom area.
  4. For example, when you click the Ad Blocking Status menu item to turn it on ( icon color is changed to green ), it will display the debug banner with the text like AD BLOCKING DETECTED, COOKIE DETECTED – NO ACTION.
  5. Other debug banner text includes but not limited to NO JAVASCRIPT ERRORS, JAVASCRIPT NOT WORKING, OUTPUT BUFFERING, etc.
  6. When you click the Log Processing —> Show Log menu item, it will show the detailed log text on the page bottom area.
  7. If you want to see an example of using the Ad Inserter debug function, you can read the article How To Analyse & Block Adblocker Traffic On Your Website To Recover Ad Revenue.

References

  1. Ad Inserter Debugging.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.