echo statement getting removed from head when LiteSpeed Plugin is active.

#1
I have litespeed plugin actiavted in my wordpress install.

I have a code,
PHP:
<?php
echo GtmIntegration::ProductViewDataImplementationOnProductPages();
?>
which is hooked in, wp_head. the above function has some JS string that I need to output on the head tag, but it doesn't get printed on the frontend.

But when I deactivate litespeed cache plugin it starts to show correctly. I tried finidng the connected setting, which is invoking this action but was unable to find one.
Simple string does get printed but methods are not being printed which plugin active.


Please help.
 
Top