• Home
  • Get help
  • Ask a question
Last post 10 hours 58 min ago
Posts last week 81
Average response time last week 4 hours 29 min
All time posts 67914
All time tickets 10497
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#2815 – Google Analytics Error

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 07 October 2016 12:57 UTC
support-cubewebdesigns-com
Greetings,

I did search past tickets but found none with my issue. I do have Analytics setup properly, see screen shot:  Your text to link here.... Yet on the Dashboard, I get this: Your text to link here....

Any ideas? I've used Analytics for years with the same account code.

Thanks,
Bill
 
Friday, 07 October 2016 13:38 UTC
wb_weeblr
Hi

The most common error is to not use the same Google account as the one attached to the Analytics accounts, but then you get a 404 error, not a 400, as you get. This seems to be related to GZIP compression. I can also see what looks to me like some Chinese characters.
What kind of hosting are you running on? shared? VPS? what's the language on it?

Rgds
 
Friday, 07 October 2016 14:40 UTC
support-cubewebdesigns-com
Greetings and thanks for a quick response,

I am a Web Hosting/Domain Name service company. This is the company website and it runs on a dedicated shared server in the English language.

Bill
 
Friday, 07 October 2016 14:43 UTC
support-cubewebdesigns-com
If you want backend access, I'll be happy to setup and account for you. I do have an IP blocker running so I would need your IP address to setup the account.

Bill
 
Friday, 07 October 2016 14:48 UTC
wb_weeblr
Hi

This not something happening in Joomla or sh404SEF. It's a communication problem between Joomla/PHP and the googe servers. Somehow the request get scrambled it seems.

- Do you have curl installed?
- do you have firewall and/or PHP logs you can look at?
- is there anything (compression, filtering) done to outgoing requests?

The URL we are trying to reach is https://www.googleapis.com/analytics/v2.4/

Rgds
 
Friday, 07 October 2016 15:34 UTC
support-cubewebdesigns-com
Greetings,

Odd...

Yes curl is and has been installed. I use several apps that require it and I have no issues with any of them.

No, there is no firewall

Attached are todays server logs for your review.

No there is no compressions/filtering or other done to outgoing request.

When I attempt to access your URL:https://www.googleapis.com/analytics/v2.4/, I get a 404 error. See screenshot: [xxxx]

Bill
 
Saturday, 08 October 2016 12:07 UTC
support-cubewebdesigns-com
Greetings,

Checking the Google API list, I don't even find the API your trying to call listed. I had someone else test the URL you gave me above, they also get a Not Found. The list of Google API's I see are: https://developers.google.com/apis-explorer/#p/

Bill

Additionally, here is my curl information: http://prntscr.com/xxxx
 
Monday, 10 October 2016 07:31 UTC
wb_weeblr
Hi

Checking the Google API list, I don't even find the API your trying to call listed.
This is the Google Analytics reporting API, v2.4
It's expected to get a 404 if you just try to load it in a browser.

This is working in thousands of servers setup, and not on yours, lets not divert to unrelated things.

Something is interfering with the communication to Google servers here. There are 2 possible explanations at this stage:

1 - it's something part of the Joomla setup: a plugin, a component,etc
2 - it's something on the server setup

To decide between each, I can suggest the following: install akeeba backup, if you don't already have it. Make a backup, I can then download it and install it on a local machine, where I can debug the PHP. When we do that, two things can happen:

a - it works, when then know the problem is on the server
b - it doesn't work: as I have the actual copy of the running Joomla site, I can then debug step by step and find the root of the problem.

Please let me know how to proceed.

Rgds
 
Tuesday, 11 October 2016 07:57 UTC
wb_weeblr
Hi

It seems you have replied by email at [email protected]? This email address is not used for support, and not read by the same persons, so it delays processing a lot, as you can see.

Our IP address is xxxx

Rgds
 
Tuesday, 11 October 2016 10:52 UTC
support-cubewebdesigns-com
Greetings,

Your account is created and the IP address white listed. Please use these credentials:

USERNAME: xxxx
PASSWORD: xxxx
URL: xxxx

I do not use Akeeba Backup, I use xCloner

You can find the backup file by following these steps:

Components>ProFiles
From the ProFiles Explorer, navigate to administrator>backups
The backup file is: xxxx


Please let me know if you need anything else. You can also reach us immediately from any page on xxxx, just use the LIVE CHAT at the bottom right of any screen.

Thanks,
Bill
 
Tuesday, 11 October 2016 15:10 UTC
wb_weeblr
Hi

I have checked your (PHP) configuration and found that you use IonCube PHP loader. We have found this to be an issue in that case on other sites. Can you disable it, even if only temporarily?

Rgds
 
Tuesday, 11 October 2016 15:20 UTC
support-cubewebdesigns-com
Greetings,

Unfortunately I can't the IonCube PHP runs our billing and accounting. Taking it offline, even temporarily, affects too many other operations. I'm sorry.

Bill
 
Tuesday, 11 October 2016 18:20 UTC
wb_weeblr
Hi

OK, despite that I downloaded the site and did a few tests. It's pretty weird: things don't work with your property ID (UA-xxxx), but work fine as soon as I use some of ours. I tested with our previous site Id, and then with the current and I have no problem displaying stats.
Are you sure this web property ID is valid? Google rejects it as soon as we ask for details of the account. It does not say 'not authorized" or something, but it simply reject the request as invalid.

Rgds





 
Wednesday, 12 October 2016 13:25 UTC
support-cubewebdesigns-com
WOW, where did you get that property ID?? The one that is in the sh404SEF config is (UA-xxxx). See this screenshot. And here is a screenshot from the Google Analytics page: [xxxx]

 
Wednesday, 12 October 2016 14:08 UTC
wb_weeblr
Hi

Sorry, I mixed up my explanation: things don't work with your UA: UA-xxxx

The UA mentioned above, UA-xxxx, is our own, and it works fine, displaying Analytics on our site, or on our local machine.

Even on your own server, when using our UA, things start to work: instead of having a 400 - bad request error, we get instead a 403 - Forbidden, which is expected, as we have not done the autorization, as per this screenshot:
[xxxx]

The first request to Google, the one that fails with a bad request error, is the one asking for details about the account ([xxxx] in your case, and it seems that's where the problem lies.

Rgds

 
Wednesday, 12 October 2016 14:14 UTC
support-cubewebdesigns-com
And what would be your recommendation? I have had that propery id for many years now. it is active and working as is my Google AdWords account linked to it.


see this: http://prntscr.com/xxxx

 
Wednesday, 12 October 2016 14:25 UTC
wb_weeblr
Hi

I have no knowledge of why Google would reject this request, it's fine everywhere, and only fails with your specific account. I don't remember any setting or thing you have to enable so that your account can be accessed through the Google Analytics API, and haven't met anything like that since we started displaying analytics results, about 7-8 years ago.

What I noticed on your site is that you have 2 analytics snippets. You seem to still have the old ga.js being called by some javascript inserted in your pages:
[xxxx]

As this is the old, deprecated version of the google snippet, maybe it does something to your account, preventing it to work? Maybe you can try for a few hours, with another Analytics account?

Rgds

 
Wednesday, 12 October 2016 14:29 UTC
support-cubewebdesigns-com
Yes, I'll try one of our Client property ID's. In the interim, I'll look at why there are 2 snippets coming up..

I'll let you know.

Bill
 
Wednesday, 12 October 2016 14:43 UTC
support-cubewebdesigns-com
OK, the second property value was coming from the template, which I have disabled. It is now only using the call from sh404SEF and still giving up the error. I did try one of our Client's Property's and it's working.

This is a hair puller.
 
Wednesday, 12 October 2016 14:53 UTC
wb_weeblr
Hi

It's something on Google's side. This UA has a history, and somehow the analytics API access is denied.

Rgds
 
Wednesday, 12 October 2016 15:04 UTC
support-cubewebdesigns-com
OK, I'll reach out to them.. will keep u posted. thanks for your efforts thus far.
 
Wednesday, 12 October 2016 17:31 UTC
wb_weeblr
Hi

I will leave this ticket open in case you need to add something. It will automatically close in 2 weeks, if not further comment is made.

Best regards
 
Monday, 17 October 2016 11:33 UTC
support-cubewebdesigns-com
Google states there is nothing wrong with my Property ID and passes the buck back to your extension saying there is an issue with it. I created another property ID just for sh404 and it pulls; but there is no data in it because I am not using that id as the sites. I can't change ID's now, there is too much data on the real one that I do not want to lose just to satisfy sh404's internal display.

I give up on this. It's not that important anyway I don't guess since Google Analytics gives me accurate data from the original ID.

Bill
 
Monday, 17 October 2016 12:32 UTC
wb_weeblr
Hi

Yep, that doesn't make sense either: if our code was at fault, this would have shown up at least in a few of the tens of thousands of sites using sh404SEF for analytics, so i'm afraid they are just passing the ball here, but there's little we can do I guess.

Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

If you created any superadmin account for us, be sure to delete or block it now to avoid unnecessary risk in the future.

Be sure to also check out wbAMP, our new Accelerated Mobiles pages plugin for Joomla - the next big thing is SEO, direct from Google themselves!

Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.