Title: replacement for yoast_analytics() function?
Last modified: August 24, 2016

---

# replacement for yoast_analytics() function?

 *  [Hubert Nguyen](https://wordpress.org/support/users/hubertnguyen/)
 * (@hubertnguyen)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/replacement-for-yoast_analytics-function/)
 * Hello,
 * Back in the days one would do something like this to call Y. Analytics
 * if ( function_exists( ‘yoast_analytics’ ) )
    { yoast_analytics(); }
 * It looks like the function got removed. What’s the substitute?
 * [https://wordpress.org/plugins/google-analytics-for-wordpress/](https://wordpress.org/plugins/google-analytics-for-wordpress/)

The topic ‘replacement for yoast_analytics() function?’ is closed to new replies.

 * ![](https://ps.w.org/google-analytics-for-wordpress/assets/icon.svg?rev=2976619)
 * [MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)](https://wordpress.org/plugins/google-analytics-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-for-wordpress/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [Hubert Nguyen](https://wordpress.org/support/users/hubertnguyen/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/replacement-for-yoast_analytics-function/)
 * Status: not resolved