WordPress.org

Forums

Ridizain
Google Analytics (2 posts)

  1. jatinsengar
    Member
    Posted 1 year 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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.