• Resolved man1056

    (@man1056)


    Hi there,

    I use an Nginx server which doesn’t have htaccess enabled. On 26th I enabled HTTPS redirection, which I think would be implemented through javascript.

    From that day, Google analytics is showing zero organic search hits. It does show Direct hits, referrals, etc. So it’s not that the GA code is not working. It’s as if the organic search results are not identified.

    FYI, the Google webmaster does not show a decrease in number of clicks. In fact has increased, but the Analytics code does not show that.

    Do you have any idea why this could be so?

    Thanks.

    https://ww.wp.xz.cn/plugins/really-simple-ssl/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    If it is caused by the JavaScript redirect, it can be fixed by adding a redirect to nginx.

    Did you try to change the domain in Google Analytics and search console to the https domain?

    Thread Starter man1056

    (@man1056)

    Hi RogierLankhorst,

    Yes, I did change the URLs in GA and Webmaster to https.

    I’m using this redirect rule in Nginx. Do you think this is the best way to do it?


    server {
    listen 80;
    server_name my-domain.com;
    return 301 https://$server_name$request_uri;
    }

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    I I do not work with nginx, so I can’t tell you if the rule is good, but I think that would be the way to go.

    Thread Starter man1056

    (@man1056)

    OK. I’ve observed the site for a while now, and after the Nginx redirect rules are in place, organic hits are being registered in Google Analytics.

    So, you might want to include this possibility in your docs and what to do about it.

    Also, just want to say Thanks for making this great plugin. 🙂

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Thanks for the feedback, I will include it in the documentation.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Google Analytics not showing hits after using Javascript for HTTPS’ is closed to new replies.