Error after implementing Google Analytics header
-
Hello,
I try to implement Google Analytics in my website.
I copy this code (with my google stript)
function wpm_google_analytics() { ?>
/* SCRIPT GOOGLE ANALYTICS */
<?php
}
add_action( 'wp_head', 'wpm_google_analytics' );
in the Appareance > Theme editor > Woodmard Child > functions.php.
But this destroyed my first page. I have few errors on Elementors I think
As comparative you can check my first page in other language wich still works
How can I fix this issue or remove this Google Analytics code ?
As I don’t even know is the code worked well after this bug
Sincerely,
Romain
Hello,
The best way to add the google analytics code is by using this free plugin Insert Headers and Footers, have a look at the site https://wordpress.org/plugins/insert-headers-and-footers/
Regards.
Xtemos Studios
Ok i will download this plugin.
But how can I fix the other code ? I cannot find it anymore in function.php;
Hello,
Please provide admin panel login and FTP details of the website.
Regards.
Xtemos Studios