diff --git a/Inc/adsense-placement.php b/Inc/adsense-placement.php index d377ec05..5abefd99 100644 --- a/Inc/adsense-placement.php +++ b/Inc/adsense-placement.php @@ -240,7 +240,9 @@ function roi_inject_content_ads(string $content): string ); $content = $injector->inject($content); - $finalContent = $postTopHtml . $content . $postBottomHtml; + // DEBUG: Agregar marcador visible para rastrear si el contenido se pierde después del filtro + $debugMarker = ''; + $finalContent = $debugMarker . $postTopHtml . $content . $postBottomHtml . $debugMarker; error_log('ROI AdSense Debug: Final injection done. postTop=' . strlen($postTopHtml) . ', postBottom=' . strlen($postBottomHtml) . ', finalLength=' . strlen($finalContent)); error_log('ROI AdSense Debug: First 200 chars of postTopHtml: ' . substr($postTopHtml, 0, 200));