Home Forums WoodMart support forum Error after implementing Google Analytics header

Error after implementing Google Analytics header

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #309222

    romain
    Participant

    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

    #309245

    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

    #309255

    romain
    Participant

    Ok i will download this plugin.

    But how can I fix the other code ? I cannot find it anymore in function.php;

    #309261

    Hello,

    Please provide admin panel login and FTP details of the website.

    Regards.
    Xtemos Studios

Viewing 4 posts - 1 through 4 (of 4 total)