-
Hi Guy’s sorry for the misunderstanding and having posted this in the FB group.
Im new to Rank Math, and loving it so far.
OK, so, last night I went ahead and clicked the “Connect Google Analytics” button, but it led to Rank Math wanting to create a new GA account and furthermore ended up wiping out my redirect data. So I restored my site to the previous day.
I’m not looking to create a new GA account, just want to connect the existing one.
So I dev’ed my own API following this well-written tutorial: https://rankmath.com/kb/create-a-google-api-project/But now I’m a bit lost as it changed nothing. However, I have not yet flushed the site and server-side cache so of course, it could be that Rank Math cannot detect the new code I placed in my child themes functions.php file.
Maybe, as soon as I do that I will see a change noticing me that the connection is made????
Before I did that though I wanted to hear from you guys about this.
and here’s my code:/**
* Filter to replace Rank Math App
*/
add_filter(
‘rank_math/search_console/alternate_app’,
function( $config ) {
$config[‘application_name’] = ‘Rank Math SEO’;
$config[‘client_id’] = ‘xxxxxxxxxxx-vd20bljmff5n1utmsahl4dnv1psm684e.apps.googleusercontent.com’;
$config[‘client_secret’] = ‘lJydiBVbBJ4bdXe,etc.etc.’;
return $config;
}
);of course, I changed a bit of the code here in ID and Secret.
Thanks, guys!
You must be logged in to reply to this ticket.