I had set this up and it was working, but after a few days I noticed the numbers didn't increment. So I went to check on the cron and noticed a few errors. There wasn't a "Reports Profile" selected, and the list is blank. I can't revoke access because it want's a value in the dropdown box. Is there anyway to manually assign a profile?

Comments

Vacilando’s picture

Sounds baffling. If you see the revocation area then there should be something in the dropdown. I haven't seen a problem like this before.

Is it a local development box or a production web server? No firewall problems to connect to Google Analytics?

One idea -- drastic I know, but quick -- would be to disable the module, uninstall it, and then install it again (note all the settings you have in the "Settings" tab so that you can set them back later).

ajhughes’s picture

I don't think that there are any firewall problems, but I will verify. It is on a live production area.

I will try your second idea, if I can't find any other glaring errors, or options.

travis uribe’s picture

I just encountered this issue as well.

I was using multiple sign in on my Google accounts. Apparently, when authorizing the module to use my account, I selected the one without an analytics profile.

The only solution was to uninstall and re-install the module.

ralf.strobel’s picture

I can confirm both the problem and the solution...

I was logged into the wrong Google account during the authentication. The result was an empty profile list which also kept me from logging back out. I manually disabled the #required setting on the form and was able to log out, but the situation remained the same, even when I logged in with the correct account again.

Only a full uninstall of the module fixed the issue.

The variable value stored in the database for "google_analytics_counter_profile_id" was NULL, so there should be a way of detecting wrong accounts automatically.

askibinski’s picture

Issue summary: View changes

I also encountered this just recently on a live site. Any ideas what causes this? I'm guessing the authentication is revoked automatically at some point and should be re-authenticated? If this is the case, the module should alert the admin about it (for example through email).

askibinski’s picture

I believe this might be the cause of this issue (in my case):
#2450165: Authentication with OAuth2

wranvaud’s picture

This can happen if you haven't added the Analytics API in the API Manager Dashboard. I believe the module should do something to prevent this unusable state (if possible). If another module/feature has a dependency on this then it can be a pain to disable.

kaszarobert’s picture

Status: Active » Closed (outdated)

Because of the Universal Analytics shutdown, version 7.x-3.x is no longer supported.
As Drupal 7 EOL is close, please consider upgrading to the latest Drupal and latest version of this module with Google Analytics 4 support.
If you are still here and experiencing problems with the latest version using GA4, then please open an issue about it.