Title: How does this work with Google Optimize
Last modified: January 15, 2020

---

# How does this work with Google Optimize

 *  Resolved [lyden](https://wordpress.org/support/users/lydenyardley/)
 * (@lydenyardley)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/how-does-this-work-with-google-optimize/)
 * When using analytics in conjunction with Google Optimize, we’re asked by Google
   to add this snippet to our HEAD section:
 *     ```
       <!-- Global site tag (gtag.js) - Google Analytics -->
       <script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXX-X"></script>
       <script>
       window.dataLayer = window.dataLayer || [];
       function gtag(){dataLayer.push(arguments);}
       gtag('js', new Date());
   
       gtag('config', 'UA-XXXXXXX-X', { 'optimize_id': 'GTM-PV8WVHL'});
       </script>
       ```
   
 * Notice the part: `, { 'optimize_id': 'GTM-PV8WVHL'}`
 * Does (or can) your plugin play nicely with this?
 * Thanks,
    Lyden
    -  This topic was modified 6 years, 5 months ago by [lyden](https://wordpress.org/support/users/lydenyardley/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/how-does-this-work-with-google-optimize/#post-12327860)
 * [@lydenyardley](https://wordpress.org/support/users/lydenyardley/) Sorry, right
   now this is not possible. May include in future

Viewing 1 replies (of 1 total)

The topic ‘How does this work with Google Optimize’ is closed to new replies.

 * ![](https://ps.w.org/flying-analytics/assets/icon-256x256.png?rev=2615115)
 * [Flying Analytics: Self-Host Google Analytics v4 with Speed Optimization](https://wordpress.org/plugins/flying-analytics/)
 * [Support Threads](https://wordpress.org/support/plugin/flying-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/flying-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flying-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flying-analytics/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/how-does-this-work-with-google-optimize/#post-12327860)
 * Status: resolved