Title: Tracking Code Removing
Last modified: July 25, 2022

---

# Tracking Code Removing

 *  [Faisal Humayun](https://wordpress.org/support/users/faisal44/)
 * (@faisal44)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/tracking-code-removing/)
 * Hello,
 * i am using Astra theme, the problem that i was facing again and again is the 
   tracking code are removing can you guide me why its happening ? if its happening
   due to theme update can you suggest me the solution.
 * Thnaks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [FahimMurshed](https://wordpress.org/support/users/fahimmurshed/)
 * (@fahimmurshed)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/tracking-code-removing/#post-15858572)
 * Hello [@faisal44](https://wordpress.org/support/users/faisal44/),
 * Except when working with a child theme ([https://wpastra.com/docs/install-astra-child-theme/](https://wpastra.com/docs/install-astra-child-theme/)),
   do not make any changes to the theme core file. I would highly suggest following
   this article [https://www.wpbeginner.com/plugins/how-to-add-header-and-footer-code-in-wordpress/](https://www.wpbeginner.com/plugins/how-to-add-header-and-footer-code-in-wordpress/).
 * I hope that this information has been helpful and clear. Have a wonderful day
   ahead of you.
 *  [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/tracking-code-removing/#post-15877264)
 * Hi [@faisal44](https://wordpress.org/support/users/faisal44/), sorry for the 
   delay.
 * Adding or modifying the theme’s code directly is not recommended as it will get
   wiped off when the theme is updated. And it looks like that’s what you’ve done.
 * This [doc](https://wpastra.com/docs/how-to-add-google-analytics-code-with-astra-theme/)
   should help you to avoid the thing like you explained above. Or you can also 
   use the plugin mentioned in the article shared by [@fahimmurshed](https://wordpress.org/support/users/fahimmurshed/)
   above. Thanks for sharing Fahim 🤝
 * Let us know if you need more help, otherwise please mark the topic as `Resolved`.
 * Kind regards,
    Herman 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Tracking Code Removing’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/astra/4.12.7/screenshot.jpg)
 * Astra
 * [Support Threads](https://wordpress.org/support/theme/astra/)
 * [Active Topics](https://wordpress.org/support/theme/astra/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/astra/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/astra/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/tracking-code-removing/#post-15877264)
 * Status: not resolved