• Resolved kusaziva

    (@kusaziva)


    I have completely disabled/removed all Javascript from our site and do not wish to add any.

    Is there a way of adding the Jetpack stats pixel code manually into the theme files (header.php or footer.php)?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support fresatomica

    (@fresatomica)

    Hi there!

    Theoretically, you could do that, however, it would be difficult to make it work as intended because the page/post ID is dynamic, and changes depending on the page viewed. If you manually added your stats code you’d see stats being collected just for the ID you used when you added the code. Otherwise, you’d need to add a different code block for every page on your site.

    Thread Starter kusaziva

    (@kusaziva)

    Thanks for the response.

    Can I add the manual stats code dynamically for every post?

    Plugin Contributor James Huff

    (@macmanx)

    No, it can only be inserted by the plugin at this time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Insert the Jetpack Stats pixel manually into footer.php’ is closed to new replies.