• Resolved napalm80

    (@napalm80)


    Hi

    I have this script in the header:

    <script type="text/javascript" src="https://c.seznam.cz/js/rc.js"></script>
    <script>
      var retargetingConf = {
        rtgId: 29109
      };
      if (window.rc && window.rc.retargetingHit) {
        window.rc.retargetingHit(retargetingConf);
      }
    </script>

    I block it before getting the consent with marketing cookies in Script Center like this: Block the script > URL: https://c.seznam.cz/js/rc.js > Category: marketing / no placeholder / no dependancy.

    But even if I have got consent with marketing cookies the script does not run and the cookie is not saved.

    Can you tell me whats is wrong?

    Thanks
    Martin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @napalm80,

    Without being able to see the site and potential console errors that currently appear, I suspect that you’ll additionally have to block the ‘second’ script for this script to work correctly after unblocking.

    Could you additionally add rc.retargetingHit as a script/URL to block in your integration for Seznam?

    Let us know if that works, but if it doesn’t: perhaps you can share an URL to the website so we can take a look as well?

    Kind regards, Jarno

    Thread Starter napalm80

    (@napalm80)

    Thank you. I have added rc.retargetingHit?as a script/URL, but the cookie is still not set ad i cannot see it in DevTools .

    The cookie name is SID.
    Website: https://www.netradicni-medicina.cz.

    The original code is:

    <script type="text/javascript" src="https://c.seznam.cz/js/rc.js"></script>
    <script>
      var retargetingConf = {
        rtgId: 54521
      };
      if (window.rc && window.rc.retargetingHit) {
        window.rc.retargetingHit(retargetingConf);
      }
    </script>

    Complianz change it to:

    <script data-service="Seznam-Sklik" data-category="marketing" type="text/plain" src="https://c.seznam.cz/js/rc.js"></script>
    <script type="text/plain" data-service="Seznam-Sklik" data-category="marketing">
      var retargetingConf = {
        rtgId: 54521
      };
      if (window.rc && window.rc.retargetingHit) {
        window.rc.retargetingHit(retargetingConf);
      }
    </script>

    It seems right, but no cookie is set anyway.

    Thanks,
    Martin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Misblock of the script’ is closed to new replies.