Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Vacilando CreditAttribution: Vacilando commentedSounds 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).
Comment #2
ajhughes CreditAttribution: ajhughes commentedI 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.
Comment #3
travis uribe CreditAttribution: travis uribe commentedI 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.
Comment #4
ralf.strobel CreditAttribution: ralf.strobel commentedI 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.
Comment #5
askibinski CreditAttribution: askibinski commentedI 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).
Comment #6
askibinski CreditAttribution: askibinski commentedI believe this might be the cause of this issue (in my case):
#2450165: Authentication with OAuth2
Comment #7
wranvaud CreditAttribution: wranvaud at Phase2 commentedThis 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.
Comment #8
kaszarobertBecause 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.