我试图摆脱闪烁效应 . 我正在使用GTM Google实验API代码作为GTM标记 .

我想调整Optimize的页面隐藏片段,以便将其与Content Experiments一起使用 .

https://support.google.com/360suite/optimize/answer/7100284

<HTML>
<HEAD>
<!-- Page hiding snippet (recommended)  -->
<style>.async-hide { opacity: 0 !important} </style>
<script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
})(window,document.documentElement,'async-hide','dataLayer',4000,
{'GTM-XXXXXX':true});</script>

我已将页面隐藏代码粘贴到网站的HTML中,但仍然存在闪烁效果 . 你可以帮助我调整它并理解为什么它没有按预期工作吗?