• Hi.

    We included site kit in our website.

    The <script> code is isisplayed as plain text in the footer. can be seen on the linked website.

    we deactivated all other plugins in a staging area as a test.
    no change.

    but changing the theme solves the problem.
    the theme seems to be older.

    which function seems to be missing so that the error is solved? I would then add it in a child theme.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out @espiat. I checked your site and I can see that Site Kit placed Analytics snippet and it is firing for site visits as expected.

    The <script> code is isisplayed as plain text in the footer. can be seen on the linked website.

    You will find some Site Kit placed code placed on a footer of your site when you’re a logged in user only, which related to the Site Kit admin toolbar and other information. I don’t see this when checking your site.

    but changing the theme solves the problem.
    the theme seems to be older.

    Can you share what problem you’re facing, or was your query specific to the Site Kit placed code on the footer of your site?

    Thread Starter Marcus Spanier

    (@espiat)

    Hi.
    The code is plain text in footer, if you look at the bottom.

    https://i.ibb.co/QbXCvLM/image.png

    Plugin Support James Osborne

    (@jamesosborne)

    Appreciate the update @espiat. In that case, please follow the steps below to try and determine whether a third party plugin configuration may be impacting how the code is rendered on the front end of your site:

    1. Login to your live site from a Chrome browser incognito window.
    2. Install and activate the Health Check & Troubleshooting plugin.
    3. Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
    4. From the same screen click on the “Available Plugins” tab at the top right and then click on the
    5. “Enable” option next to “Site Kit by Google“.
    6. Check does the same occur. Note that you will be viewing your site from a core WordPress theme, as troubleshooting mode will switch themes for you only (as a logged in administrator).

    Let me know how you get on with the above, and please share your Site Health information for further troubleshooting. Thank you.

    Plugin Support James Osborne

    (@jamesosborne)

    As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Script as plain text and not in script tags’ is closed to new replies.