{"id":19022868,"date":"2026-09-17T20:56:59","date_gmt":"2026-09-17T20:56:59","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/please-help-with-yandex-metrika\/"},"modified":"2026-09-17T20:56:59","modified_gmt":"2026-09-17T20:56:59","slug":"please-help-with-yandex-metrika","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/please-help-with-yandex-metrika\/","title":{"rendered":"Please help with Yandex Metrika"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I am using the FAZ Cookie Manager plugin on a WordPress website with the &#8220;Hospa&#8221; medical theme. I am trying to set up a delayed loading for the Yandex Metrika analytics script based on user consent, but I have encountered two critical issues:<\/p>\n\n\n\n<ol>\n<li><strong>Ignored Banner Issue:<\/strong> When a visitor arrives at the site, the cookie consent banner appears. However, if the user ignores the banner (does not click &#8220;Accept&#8221; or &#8220;Decline&#8221;) and simply continues scrolling or navigating through the website, the analytics script remains blocked. Since they are actively using the site, I am losing a massive amount of traffic data. Is there a built-in feature or layout setting (like a full-screen overlay or modal backdrop) that forces the user to make a choice before interacting with the website content?<\/li>\n\n\n\n<li><strong>Page Reload Failure:<\/strong> We tried implementing both methods from the documentation to handle user consent. When we use the direct tag modification approach:<br \/><code>&lt;script type=\"text\/plain\" data-faz-tag=\"analytics\"&gt;...&lt;\/script&gt;<\/code><br \/>The script gets blocked initially, but it completely fails to automatically fire or initialize upon page reload (<code>F5<\/code>) even if the user has already given their consent previously. The same happens when using the custom JS event listener (<code>fazcookie_consent_update<\/code>) \u2014 it fires nicely on the exact moment of the button click, but upon page refresh, the state is lost, or the event does not fire again, leaving the script inactive.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Could you please advise on how to properly configure the plugin so that:<\/p>\n\n\n\n<ul>\n<li>It forces a user decision or correctly tracks users who interact with the site without clicking the banner.<\/li>\n\n\n\n<li>It successfully remembers the approved consent state and initializes the analytics script immediately upon page refresh (<code>F5<\/code>) without any manual code workarounds?<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you for your assistance.<\/p>\n","protected":false},"template":"","class_list":["post-19022868","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19022868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19022868\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19022868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}