Title: how to wrapping google analytics script code
Last modified: August 24, 2016

---

# how to wrapping google analytics script code

 *  [escapefromhere](https://wordpress.org/support/users/bukowski1982/)
 * (@bukowski1982)
 * [11 years ago](https://wordpress.org/support/topic/how-to-wrapping-google-analytics-script-code/)
 * Hi guys, I would like to use a plugin to give users the possibility to choose
   if install analytics cookies _ga and _gat or not.
    This plugin required to wrap
   the code that generate the cookies to block the cookies itself if the users doesn’t
   agree with the installation of the cookies..is it possible to know which portion
   of the yoast analytics plugin generate the google cookies? thank you!
 * [https://wordpress.org/plugins/google-analytics-for-wordpress/](https://wordpress.org/plugins/google-analytics-for-wordpress/)

The topic ‘how to wrapping google analytics script code’ 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

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

 * 0 replies
 * 1 participant
 * Last reply from: [escapefromhere](https://wordpress.org/support/users/bukowski1982/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/how-to-wrapping-google-analytics-script-code/)
 * Status: not resolved