• Resolved pfortunt

    (@pfortunt)


    I installed the plugin, activated it. Then clicked on deactivate by mistake and activated it again, maybe that’s the reason.

    But for every visitor for each page, views are doubled, even if there’s only a single visit to a page (I tested myself).

    Could it be that the code has been inserted twice on the pages? Is there a place where I could check it on the code?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ben Sibley

    (@bensibley)

    Thanks for getting in touch about this.

    I would recommend clearing your cache first. That will ensure that the latest code is showing up on the site. If you view the site’s source code and search for “iawp” you will find the tracking script and can check if it appears twice.

    I’m guessing that emptying the cache will fix this, but if the issue persists, please link me to the website and I will take a look.

    Thread Starter pfortunt

    (@pfortunt)

    thanks for the quick reply!
    I did clear the cache, but it didn’t solve the problem.

    However, on the source code, the script is indeed appearing twice. You can check here: pedrofortunato.works

    Plugin Author Ben Sibley

    (@bensibley)

    Thanks for trying that.

    It looks like there is an issue with how the theme is coded. Independent Analytics normally outputs the tracking script once in the footer, but it’s also being included after the site’s header, which is unusual. I can see there are a few other scripts that are also included after the header as well: https://d.pr/i/1rKHvM

    One of those scripts is actually the theme’s stylesheet, which is being mistakenly marked as a Javascript file when it is a CSS stylesheet. I would contact the theme developer as there are a few errors that need to be cleaned up.

    Thread Starter pfortunt

    (@pfortunt)

    oh thanks, I looked and it seems it had a doubled <?php wp_footer(); ?> where it shouldn’t be. fixed that, now plugin works fine.

    yeah I was the theme developer myself 2 years ago. My first website on wordpress, so there are some mistakes. Thanks for pointing out!

    I guess it’s ok to delete the topic, considering it was a theme error rather than a plugin bug

    Thanks and keep the good work! love the plugin!

    Plugin Author Ben Sibley

    (@bensibley)

    No worries! I’m glad we could get this fixed. I’ll mark this thread as resolved and feel free to open a new one if anything else comes up.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page views are doubled’ is closed to new replies.