WordPress.org

Ready to get started?Download WordPress

Forums

Ridizain
Google Analytics (2 posts)

  1. jatinsengar
    Member
    Posted 4 months ago #

    Hi.
    I use google analytics code in header.php. Everytime the theme gets updated, does the analytics code gets deleted?

  2. That's why you never edit the theme that way. Updates will erase your changes.

    You can try creating and activating a child theme but in this case why not just use a Google Analytics plugin?

    http://wordpress.org/plugins/search.php?q=Google+Analytics

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.