• Resolved Paul Buijs

    (@paulbuijs)


    Hi I am trying to install a script on my site but the partner integration gives me this error:
    “Code found in the page . Please place code directly before the closing body tag.”

    Screenshot of code and error: https://share.zight.com/X6uvrRe5

    What setting do I use the make the code inserted on my site as the partner desires?

    Screenshot of how I have it set up:
    https://share.zight.com/YEuwmkr4

    If I try external or in the footer, the code is not found at all by the partner integration validator.

Viewing 1 replies (of 1 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Hello Paul,

    the Sovrn integration wants the JS code at the bottom of the page, right before the closing body tag. The Simple Custom CSS & JS plugin cannot force the custom code’s placement exactly before the closing body tag, but it can place it somewhere in the footer, along with the other JS scripts loaded by the website.

    Theoretically, the JS affiliate code should work with the “Internal” and “In the <footer> element” options. After changing the settings, make sure to purge the PressableCDN caches. It could be that the integration validator didn’t find the JS code in the footer because it checked a cached version of the page.

    • This reply was modified 10 months, 3 weeks ago by SilkyPress.
Viewing 1 replies (of 1 total)
  • The topic ‘Code found in the page . Please place code directly before the’ is closed to new replies.