Google OAuth Client config setup issue

in this How to set up Google OAuth Client config guide, it states:

Authorized redirect URIs : needs to be set to your Matomo (Piwik) URL with this special URL/query added at the end: `https://matomo.my-website.com/index.php?module=SearchEngineKeywordsPerformance&action=processAuthCode

But I am trying out Matomo Cloud and my URL is

my-website.matomo.cloud

, I do not have

matomo.my-website.com

What should I enter in this field for Authorized redirect URIs?

Thanks in advance!

Well, I would guess exactly what it states?

https://my-website.matomo.cloud/index.php?module=SearchEngineKeywordsPerformance&action=processAuthCode

Hi Roy,

Did you manage to get this working?

Thanks,

Hi @fdellwing @Jason_1282 ,
Using

https://my-website.matomo.cloud/index.php?module=SearchEngineKeywordsPerformance&action=processAuthCode

Is not working, because google requires using a verified domain and there is no way i can verify my ownership of my-website.matomo.cloud

I wonder how can we successfully set this up with matomo.cloud?

Thanks!

Hi,

Google wants you to verify the ownership of the site you want to track. Are you following this guide here: Search Engine Keywords Performance - Analytics Platform - Matomo ?

Hi @Jason_1282,

yes, i can verify ownership of https://www.my-website.com ,which is my own domain.

but there is no way i can verify https://my-website.matomo.cloud since it is not my domain.

this is why i am stuck.

Thanks!

Hi Roy,

Seems Google has made a few changed to this API. We have updated the process. Can you please try again with the new process: Search Engine Keywords Performance - Analytics Platform - Matomo

This process doesn’t work as written in the guide. I get an error after uploading the configuration file that says: “WARNING: /home/innocraft-cloud-earth/www/*.innocraft.cloud/plugins/SearchEngineKeywordsPerformance/vendor/google/apiclient/src/Google/Client.php(872): Notice - Undefined index: client_secret - Matomo 3.8.1 (please do a search first as it might have been reported already)”. Performing a search on the forums, lead me to this thread.

After clicking “Start OAuth Process” button I get this error: " Error: redirect_uri_mismatch which shows the url as being a matomo dot cloud url, even though the redirect url I have in the configuration is matomo dot my-website dot com and the rest of the redirect string.

Like the original poster, I cannot verify the Matomo domain because it is not mine to verify. I have also changed the redirect URI to include matomo.my-website.com instead, but received the same error message as I shared above.

All advice to resolve this is welcome.

Hi Bridget,

thanks for reporting. we are already investigating that issue and will try to provide a fix soon.

Regarding the redirect url mismatch. You do not need to actually verify the matomo domain. You need to add your matomo cloud subdomain to the list of authorized domains on the OAuth Consent screen configuration. See step 8 on Search Engine Keywords Performance User Guide - Analytics Platform - Matomo

Cheers,

@SteveG

tested again today. it’s working. thank you!