Home Forums Basel support forum How to add Google Analytics Tracking Code to My Website?

How to add Google Analytics Tracking Code to My Website?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #151739

    FairFang730
    Participant

    How to add Google Analytics Tracking Code to My Website?
    I am using the child theme, which file should I add the tracking code to?

    #151781

    Hello,

    The best way is to use the free plugin Insert Headers and Footers, have a look at the site https://wordpress.org/plugins/insert-headers-and-footers/

    Best Regards

    #151906

    FairFang730
    Participant

    if I don’t want to use a plugin.What file should I add to?

    #151910

    FairFang730
    Participant

    You tell me which file it is, I copy it to the child theme and then add the tracking code.

    #151918

    Hello,

    You need to insert in the header.php file you can get it from Dashboard > Appearance > Editor, chose the theme.

    Best Regards

    #151936

    FairFang730
    Participant

    Should I copy the header.php file to the child theme on the server first?

    #151988

    Hello,

    Your question is not clear. Copy the file to the child theme and insert the code.

    Best Regards

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