Analytics Gathering Data Analytics data is not yet available, please check back
-
@abdullahramzan
@jamesosborne
@shethelivingI have 2 self-hosted sites on my own server.
I have installed Google Site kit (GSK) on both sites months ago.
On both sites I see the message “Analytics is connected”.
On analytics.google.com I see “All the website data” for both sites with thousands of visitors.
Therefore, Analytics code placed perfectly and also Google Assistant shows both my sites as connected.
Site Health shows 0 issues.
On site 1, Google Site Kit shows all data.
On site 2, Google Site Kit shows all data BUT Analytics only shows: “Analytics Gathering Data Analytics data is not yet available, please check back”.
I have seen the other posts on this forum and followed the instructions you give. I have reset GSK, I have deactivated and deleted the plugin and install it again many times successfully. But I get the same message for Analytics.
Please understand that both my 2 sites are the exact same configuration. The only difference between the two are the posts and the domain name.
Does the fact that site 2 is an internationalized domain name (IDN) matter for the Analytics portion of GSK to show the data?
My website URLs are attached privately to a Google form.
Horacio
Webmaster-
This topic was modified 3 years, 9 months ago by
Plugin user.
-
This topic was modified 3 years, 9 months ago by
-
Hello Horacio,
Thanks for opening a support topic.
First of all I’d recommend you not to mention anyone directly as its against the forum rules.
Regarding Analytics issue you need to share following information:
1. Your Site Health information via form privately so we can inspect your setup.
2. Are you seeing real-time traffic on the analytics.google.com service dashboard?
3. Please also share screenshot if you are seeing any reported traffic on the analytics.google.com normal service dashboard?Note: To see real-time report make sure you are not logged-in while you are visiting site for report purpose.
Best Regards,
Okay, responder (respecting then rules), thanks for the support
1. I did shared the information requested using the form.
2. Yes, I am seeing real-time traffic on the analytics.google.com service dashboard
3. I shared the screenshot of the reported traffic on the analytics.google.com normal service dashboard. The link to access the screenshot is in the same form as 1 above.
The plugin user
Hello @hfigarella ,
Thank you so much for cooperating with us & respecting the forum rules. We really appreciated this act.
The website URL you shared in the Site Health information is showing a blank page only. Can you please double check this?
Please also check the same date range from Site Kit Analytics dashboard & send us the screenshot. Also please don’t forget to share browser’s console on the same screen.
Best Regards,
Screenshot of GSK with the same date range from Site Kit Analytics dashboard is attached showing browser’s console on the same screen.
The reason why you get a blank page is explained on that attached form.
Thanks
Hello @hfigarella ,
Thanks for sharing information. Can you please share the browser console screen by enabling developer mode in the Analytics dashboard?
By inspecting your Site Health info I can see few plugins related to security/firewall. It seems those plugins are restricting to collect the data from the Google service dashboard. Can you please apply basic troubleshooting & see if you are able to see data or not?
- Install and activate the Health Check & Troubleshooting plugin.
- Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
- From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google”
- Visit the Analytics dashboard
You can exit troubleshooting mode afterwards.
Best Regards,
1. WordPress version 5.7.2 was reinstalled
2. The Health Check & Troubleshooting 1.4.5 plugin was installed and activated
3. GSK 1.34.1 was enabled.
4. The only plugins running were then GSK and the one mentioned in (2) above.5. The server firewall was disabled
6. Site health was run and the Site Health Info was pasted on a Google form identified with this Support Topic URL (which presumably is attached to this ticket. Please let me know if it is not)
7. On that form dated around Fri, 18 Jun 2021 00:50:01 GMT the is a link under Any other supporting information. That link will open a folder on Google Drive with all the screenshots you have asked in this topic and WILL ask from now on.
In that folder you will find:
a. PDF file with the Site Kit by Google | Site Health Information (same as in the form)
b. A screenshot showing the site Troubleshooting Mode is enabled
c. A screenshot showing GSK with no Analytics data. GSK does show data from Search Console and Page Speed and Experience. On the right site the Developer Tools console is also shown.
d. A screenshot showing Analytics data for that site for the same range (7 days) on https://analytics.google.com/analytics/web/. It can also show data up to April 2021 when the Analytics account was created for that site.
e. A screenshot showing GSK Analytics window with the message “Analytics is connected” but no data
LET ME KNOW IF YOU WANT ME TO TROUBLESHOOT ANYTHING ELSE HERE AND SEND YOU SCREENSHOTS (WHICH WILL BE PUT INSIDE THAT SAME FOLDER ON GOOGLE DRIVE).
I do not know if anything else can be done on my end. Although I have done it before, I followed your instructions to run my site on the bare minimum:
firewall disabled, stable version of WordPress, default theme, no plugins but GSK
Still GSK plugin will not show analytics data when analytics.google.com/analytics/web/ shows thousands of visitors since April.
I have read this forum and noticed that the majority of users who open a case similar to this one either stop writing or report that it “magically” started working the day after. I have not seen a case with the reason why it was not working.
By mentioning some of the responders by name I was looking the right guy who will see the issue and know what the solution is. It was not my idea to break any rules.
I have not had my magic moment after months waiting for GSK to show Analytics data for one of the 2 sites. Because it is not something critical and it is just something nice to have, I just wait out of curiosity to see what is happening.
Another fact is there is another site on the same exact server running the same exact configuration under the same exact firewall rules that does show full Analytics data on GSK with no issues
The only difference between one site and the other is the domain name.
The one that is NOT showing Analytics data is an IDN. So, I will ask now the question which I started this topic 5 days ago:
Does the fact that site 2 is an internationalized domain name (IDN) matter for the Analytics portion of GSK to show the data?
Many thanks for going to the trouble of providing all the additional information, very useful indeed. After reviewing the details I noticed that on your second site on your server setup there seems to be absolute URLs compared to your working sites relative URLs. While the folder directories seem to include capital letters I suspect this shouldn’t be an issue given it looks like a Windows setup. Having said that can you please review your hosting setup and for testing purposes please create a copy of your working hosting setup before moving the location of your site. If possible please use all lower case characters just to rule this out.
I have read this forum and noticed that the majority of users who open a case similar to this one either stop writing or report that it “magically” started working the day after. I have not seen a case with the reason why it was not working.
I can’t be certain myself although with other users that self host with Windows environment did report issues, usually during setup and not specifically Analytics reporting. This were as a result of Firewall settings or local issuer certificates.
Does the fact that site 2 is an internationalized domain name (IDN) matter for the Analytics portion of GSK to show the data?
Good question. This should not make a difference. We did have some users report issues in the earlier stages of the plugin release however these have since been resolved.
So in order to troubleshoot this further please do try and recreate a similar hosting environment. This should output a similar Site Health directory report to your working site. If that fails I can provide some cURL or WP CLI commands you can use to test the connection to the Site Kit service.
Thanks J.
folder directories seem to include capital letters
No issues with that
similar hosting environment
I have 2 sites on the same exact environment.
Web site 2 is practically a clone of web site 1 with a different domain name (web site 2 is an IDN, web site 1 is normal characters). More information in attached form.
Everything works fine in both web sites except that Site Kit by Google does not show Analytics data on web site 2 no matter what I do on the server. Web site 2 does show data for Search Console and Page Speed and Experience. Web site 2 shows “Analytics is connected”
On the attached Google form from today please read the Any other supporting information section to get access to a Google folder with screenshots and more information about these 2 sites.
My next step is to troubleshoot Site Kit by Google itself by going to the code to see what happens (or does not happen) before the plugins writes “Analytics Gathering Data
Analytics data is not yet available, please check back later”some cURL or WP CLI commands you can use to test the connection to the Site Kit service
That will help (both of us) to get somewhere. Is the message “Analytics is connected” a response from those commands?
We already know that nothing is stopping the communication with https://analytics.google.com/analytics/web/ which is getting data from both my sites.
We also know that web site 1 is getting responses from the Site Kit service and showing Analytics data.
Nevertheless, web site 2 will not show Analytics data even in troubleshoot mode and with my server firewall off.
We did have some users report issues in the earlier stages of the plugin release however these have since been resolved.
I am not clear if it is the same issue. Internationalized Domain Names (IDNs) enable people around the world to use domain names in local languages and scripts. IDNs are formed using characters from different scripts, such as Arabic, Chinese, Cyrillic or Devanagari. These are encoded by the Unicode standard and used as allowed by relevant IDN protocols.
After going through GSK code the issue with my site is definitely the fact that the name is an IDN.
I have added a new file to the Google folder listing the Server Variables passed to the GSK plugin using the superglobal $_SERVER.
Obviously, I can see a difference how the Server Variables are handled between the Search Console module which shows data and the Analytics module which does not.
Definitely my site is connecting to the to the Site Kit service but is passing the information wrongly.
INITIAL QUESTION
Does the fact that site 2 is an internationalized domain name (IDN) matter for the Analytics portion of GSK to show the data?
DEFINITE ANSWER
YES! Internationalized Domain Names (IDNs) are in unicode format.
unicodenáme.xxx (unicode) = xn--unicodenme-z4a.xxx (ASCII)
By going through the GSK plugin code I can see that the plugin sends the site url to the Analytics Reporting API v4 in ASCII format from the server variable [SERVER_NAME] or [HTTP_HOST] or siteurl.
As a result of that, no Analytics data is shown by GSK..
SOLUTION
Temporary
Sending site url in unicode shows the Analytics data. So, instead of sending xn--unicodenme-z4a.xxx, send unicodenáme.xxx
I accomplish that as a temporary solution by hardcoding
…\google-site-kit\includes\Modules\Analytics.php around line 613
/* Added by Horacio to make the IDN work on this plugin */ $request['dimensionFilterClauses'][0]->filters[0]->expressions[0] = 'unicodenáme.xxx'; $request['dimensionFilterClauses'][0]->filters[0]->expressions[1] = 'www.unicodenáme.xxx';
and voilá, the Analytics data shows fine.
Of course, a permanente solution will depend on Google developers to make Site Kit by Google compatible with IDN web sites. Perhaps by using the viewID instead of the url.
Until that happens, I will have to change the plugin{s code every time it is updated.
Thanks everyone for your time. (The Google folder was deleted)
Is this ticket marked as solved when the plugin is updated to accept IDNs?
Issue is now on GitHub
https://github.com/google/site-kit-wp/issues/3606
I believe this can be closed now
Many thanks for sharing the additional insights after performing more testing. We’ll test this on our site while also bringing this to the attention of the team. We’ll keep you posted with any updates either here or on the GitHub issue you kindly created.
@hfigarella As you likely saw from the GitHub issue, we have a fix for this issue in today’s 1.38.0 release. Please update Site Kit and your Analytics data should start filling in on the Site Kit dashboard soon.
I’m going to close this topic out, but if you do experience any further trouble with this issue or have any other questions about Site Kit, please create a new topic and we’d be happy to help.
Thank you!
- The topic ‘Analytics Gathering Data Analytics data is not yet available, please check back’ is closed to new replies.