• Resolved alexfornuto

    (@alexfornuto)


    After migrating this site from a hosted service (Pantheon) to a VPS, Jetpack is no longer showing any site stats.

    – I’ve hit the site from a different IP while not logged in to make sure there is traffic.
    – The only thing that could block traffic is UFW, and I’ve made a full allowance exception for Nginx
    – I’ve disabled Jetpack on the old site and reconnected it on the new site to WordPress.com
    – I checked the nginx error log, and the only jetpack error is from hours ago when I disabled and removed the plugin, then reconfigured it per the troubleshooting page.

    What else can I do, where else should I look for errors?

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi there

    You had a few duplicated connected sites in our system, which can happen if you migrate a site without disconnecting first.

    I’ve disconnected those duplicates now, and it looks like your stats are working again from today.

    Let us know if you continue to have trouble.

    Thread Starter alexfornuto

    (@alexfornuto)

    Thanks Dan!

    For my edification, if I were to make that mistake again (not disconnect before migrating), is there anything I can do as a user to resolve this issue?

    Plugin Support MadHatter (a11n)

    (@madhattersez)

    It’s best if you have us handle this on our side of things, as we can often follow the trail of sites how they were dropped in favor of new connections.

    That way, we can make sure your plans and billing are set up properly and that we can make sure your stats and followers merge from the “old” versions of the site to the current one.

    Please let us know if you have any other questions!

    Thread Starter alexfornuto

    (@alexfornuto)

    Thanks for the explanation! Fun follow-up: Jetpack registered a hit yesterday, but appears to no longer be logging new hits. Again I am testing by accessing the site from a different IP, while not authenticated to the site, and turning off all tracking blockers.

    Thread Starter alexfornuto

    (@alexfornuto)

    Updating again because I saw that this ticket was erroneously marked as resolved.

    Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @alexfornuto

    When I view the page source of your site, I can see the stats.wp.com/ code which is needed to record stats, however when I inspect the page, I see in the console errors such as this:

    Loading failed for the <script> with source “https://stats.wp.com/e-202109.js”.
    Content Security Policy: The page’s settings blocked the loading of a resource at https://stats.wp.com/e-202109.js (“script-src”).

    It appears that some sort of policy or security settings on the site is preventing the stats module from being able to run.

    Thread Starter alexfornuto

    (@alexfornuto)

    Hi Bruce.

    There’s nothing set up on this host other than what I detailed in my first post. It’s a fresh server, only Nginx, PHP, DB, and UFW installed (with a full exception made for Nginx). Where would such a ‘page setting’ be coming from?

    EDIT: Aha! This is, of course, my own fault. Back on Pantheon, I wrote an mu-plugin that set security headers in an attempt to make the API accessible to another project as a data source for documentation. I disabled that plugin and stats are working.

    Thanks.

    Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Awesome! Glad to hear you got it sorted out!

    I have exactly the same problem.
    I moved two pages to another server. No statistics from that day on.

    • This reply was modified 3 years, 12 months ago by gsurowiec.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘No Site Stats After Migration’ is closed to new replies.