• Resolved axiomhoney

    (@axiomhoney)


    Hello,
    I have build a website using WordPress. In Google Analytic, I have added the necessary Information and a code has been generated by Google Analytics.
    Now I have no Idea, how and where this code should be entered or integrated, because there is no option available in my website theme for the integration of Google Analytics.
    Please guide me.
    Best regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • C W (VYSO)

    (@cyril-washbrook)

    You can install a plugin that will handle Google Analytics integration for you. There are several from which to choose. Common options include Google Analytics by Yoast (the most popular) and Google Analytics Dashboard (which allows you to view some statistics from directly within your admin area).

    Thread Starter axiomhoney

    (@axiomhoney)

    Hello C W
    Thanks for your supportive reply.
    Is there any possibility to use the Google Analytics code with using any plug in. I mean, can we enter the analytics code directly in wordpress website.
    Please guide me.
    Regards.

    C W (VYSO)

    (@cyril-washbrook)

    Yes.

    The basic instructions for getting the tracking code can be found here, which it seems you’ve found. As for where to paste the code, usually you would put it into the header template in your theme, which may or may not be called header.php. I can’t be more specific than that because the details may vary depending what theme you’re using.

    Assuming you want your data to be reliable, you should probably encase the code with an appropriate if statement to prevent the analytics code showing up for admins. For instance, you don’t want your own browsing of the site to contribute to the stats, because you’re not a real “visitor” to your own website. You would most likely want to use current_user_can() (function reference) or is_user_logged_in() (function reference).

    Of course, nifty features like what I’ve just described are exactly the kind of things that plugins can handle for you with no hassle.

    Thread Starter axiomhoney

    (@axiomhoney)

    Dear CW and emekyren,
    Thank you so much for your support.
    I have got more information from your replies.
    It is highly appreciated.
    Kind Regards.

    am sorry to post this here.

    please can anyone help me here?
    my website admin login page is not connecting,
    here is my website link: https://www.thepacenews.com/

    please kindly help me out.

    thanks.

    C W (VYSO)

    (@cyril-washbrook)

    thepace, please start your own topic if you have a problem that you would like people to help you with.

    okay C W, i understand, but am not patient enough, and that is why i stated in my post that

    am sorry to post this here.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Google Analytics Integration in Website’ is closed to new replies.