WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to Put the Google Analytics Page Views Code into The Loop? (5 posts)

  1. madeleinelabitan
    Member
    Posted 1 year ago #

    So I just activated my Google Analytics account to retrieve my page views.. And this is what the post page views settings instructed me to do..

    To display the pageviews number of a particular post, insert this PHP code in your template..

    This code must be placed in The Loop. If not, you can specify the post ID.

    The problem is I don't know what The Loop is and how to find it, and how to place the code in it...

    Can anybody help me????

    Thanks!!!

  2. what The Loop is and how to find it

    start by reviewing:
    http://codex.wordpress.org/The_Loop

  3. madeleinelabitan
    Member
    Posted 1 year ago #

    Thanks!

  4. essaysnark
    Member
    Posted 1 year ago #

    @madeleinelabitan, you should be able to implement Google Analytics in a straightforward way on your WP site. You can use a plugin (there's a bunch - Yoast SEO is a popular one, there's others) or you can just place the analytics code in your site's footer.php. Here's some instructions: http://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/

  5. madeleinelabitan
    Member
    Posted 1 year ago #

    Thank you for the responses!:)

Topic Closed

This topic has been closed to new replies.

About this Topic