Unable to connect Google Analytics


I’m having some difficulties connecting my Google Analytics account to MainWP.

When I log in, my account is always listed as “Disconnected”.

The API is enabled and all information looks accurate.

What can I do to fix this?

Hey @WebUser

Have you tried following the steps from this help document? Create Google Analytics Client ID and Client Secret - MainWP Documentation

If so, did you encounter any issues or error messages on any of the steps?

And can you please post the community system report from your MainWP Dashboard for review? The report is located in your Dashboard under Info → Server, on the top right of the page.

Be sure to use the button like the one below; this button hides all your private information:


Pressing the button auto-copies the report to your clipboard then just paste it in a reply here.

Hi Bojan,

I tried following those steps again but it is still giving me an error.

The issue is that when you get to the very end of the guide, my account is still being listed as disconnected.

Here is that information you requested:

### WordPress Check                Required                                               Detected                                     Status   ###

FileSystem Method                  = direct                                               direct                                       Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
WordPress Memory Limit             >=64M                                                  40M                                          Warning     
WordPress Version                  >=3.6                                                  6.0.3                                        Pass        

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL SSL Version                   >=OpenSSL/1.1.0                                        OpenSSL/1.1.1q                               Pass        
cURL Timeout                       >=300 seconds                                          60                                           Warning     
cURL Version                       >=7.18.1                                               7.85.0                                       Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Allow URL fopen                N/A                                                    YES                                                      
PHP Disabled Functions             N/A                                                    No functions disabled.                                   
PHP Exif Support                   N/A                                                    YES ( V7.3.)                                             
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, PDO, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, ionCube Loader, json, ldap, libxml, litespeed, mbstring, mysqli, mysqlnd, odbc, openssl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, session, shmop, soap, sockets, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, timezonedb, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           300                                          Pass        
PHP Max Input Time                 >=30 seconds                                           300                                          Pass        
PHP Memory Limit                   >=128M                                                 512M                                         Pass        
PHP Post Max Size                  >=2M                                                   256M                                         Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Upload Max Filesize            >=2M                                                   256M                                         Pass        
PHP Version                        >=7.0                                                  7.3.33                                       Pass        
PHP XML Support                    N/A                                                    YES                                                      
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                                                             Pass        

### MySQL                          Required                                               Detected                                     Status   ###

MySQL Client Encoding              N/A                                                    utf8mb4                                                  
MySQL Mode                         N/A                                                    ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION            
MySQL Version                      >=5.0                                                  10.3.36-MariaDB-cll-lve                      Pass        

### Server Configuration           Detected Value                                      ###

Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Charset Content             N/A                                                    
Architecture                       64		 bit                                               
Gateway Interface                                                                         
HTTPS                              ON                                                     
Memory Usage                       18.62 MB                                               
Operating System                   Linux                                                  
Request Time                       1666588460                                             
Server Protocol                    HTTP/1.1                                               
Server self connect                Response Test O.K.                                     
Server Software                    LiteSpeed                                              
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance 365                                                    
Basic uptime monitoring enabled    Yes                                                    
Cache control enabled              No                                                     
MainWP Dashboard Version           Latest: | Detected: 4.2.6 Warning              
MainWP legacy backups enabled      No                                                     
Maximum number of comments         50                                                     
Maximum number of pages to return                                                         
Maximum number of posts to return                                                         
Maximum simultaneous install and update requests                                                       
Maximum simultaneous requests      4                                                      
Maximum simultaneous requests per ip1                                                      
Maximum simultaneous sync requests                                                        
Minimum delay between requests     200                                                    
Minimum delay between requests to the same ip1000                                                   
Number of child sites              22                                                     
Optimize for shared hosting or big networksNo                                                     
Plugin advanced automatic updates enabledYes                                                    
Primary backup system              MainWP Legacy Backups                                  
REST API enabled                   No                                                     
Site health monitoring enabled     Yes                                                    
Theme advanced automatic updates enabledYes                                                    
Use WP Cron                        No                                                     
WP Core advanced automatic updates enabledYes                                                    

### Extensions                     Version                                                License                                      Status   ###

Advanced Uptime Monitor Extension  5.2.2                                                  Actived                                      Pass        
Boilerplate Extension              4.1                                                    Actived                                      Pass        
MainWP Article Uploader Extension                                                Actived                                      Pass        
MainWP BackWPup Extension          4.0.5                                                  Actived                                      Pass        
MainWP Bulk Settings Manager Extension4.0.4                                                  Actived                                      Pass        
MainWP Clean and Lock Extension                                                Actived                                      Pass        
MainWP Clone Extension             4.0.2                                                  Actived                                      Pass        
MainWP Code Snippets Extension     4.0.1                                                  Actived                                      Pass        
MainWP Comments Extension          4.0.6                                                  Actived                                      Pass        
MainWP Custom Dashboard Extension  4.1.1                                                  Actived                                      Pass        
MainWP Custom Post Type            4.0.3                                                  Actived                                      Pass        
MainWP Domain Monitor Extension    4.0.1                                                  Actived                                      Pass        
MainWP Favorites Extension         4.0.10                                                 Actived                                      Pass        
MainWP File Uploader Extension     4.1                                                    Actived                                      Pass        
MainWP Google Analytics Extension  4.0.4                                                  Actived                                      Pass        
MainWP iThemes Security Extension  4.1.1                                                  Actived                                      Pass        
MainWP Lighthouse Extension        4.0.2                                                  Actived                                      Pass        
MainWP Maintenance Extension       4.1.1                                                  Actived                                      Pass        
MainWP Matomo Extension            4.0.4                                                  Actived                                      Pass        
MainWP Page Speed Extension        4.0.2                                                  Actived                                      Pass        
MainWP Post Dripper Extension      4.0.4                                                  Actived                                      Pass        
MainWP Post Plus Extension         4.0.3                                                  Actived                                      Pass        
MainWP Rocket Extension            4.0.3                                                  Actived                                      Pass        
MainWP Staging Extension           4.0.3                                                  Actived                                      Pass        
MainWP Sucuri Extension            4.0.11                                                 Actived                                      Pass        
MainWP Team Control                4.0.2                                                  Actived                                      Pass        
MainWP Time Capsule Extension      4.0.3                                                  Actived                                      Pass        
MainWP URL Extractor Extension     4.0.2                                                  Actived                                      Pass        
MainWP Virusdie Extension          4.0.0                                                  Actived                                      Pass        
MainWP Vulnerability Checker Extension4.1.2                                                  Actived                                      Pass        
MainWP White Label Extension       4.1.1                                                  Actived                                      Pass        
MainWP WooCommerce Shortcuts Extension4.1.1                                                  Actived                                      Pass        
MainWP WooCommerce Status Extension4.0.8                                                  Actived                                      Pass        
MainWP Wordfence Extension         4.0.6                                                  Actived                                      Pass        
MainWP WordPress SEO Extension     4.0.2                                                  Actived                                      Pass        
MainWP WP Compress Extension       4.0.1                                                  Actived                                      Pass        

### Plugin                         Version                                                Status                                    ###

Classic Editor                     1.6.2                                                  Active                                       
Divi Supreme Pro                   4.8.65                                                 Active                                       
Loginizer                          1.7.2                                                  Active                                       
MainWP Dashboard                   4.2.6                                                  Active                                       
Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder2.4.1                                                  Active                                       
Yoast SEO                          19.3                                                   Active                                       

Thank you!

Thank you for the update.

Other than the fact that the account is listed as disconnected, did you notice any other warning or error messages during the previous steps?

Also, your MainWP Dashboard is out of date. So please update it to the latest version just so we can rule that out as a possible issue.

And after that, can you please temporarily disable all other plugins and extensions except for MainWP Dashboard and Google Analytics extension, and try one more time?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.