Title: Track Google Ads
Last modified: November 28, 2021

---

# Track Google Ads

 *  Resolved [attractmore](https://wordpress.org/support/users/attractmore/)
 * (@attractmore)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/track-google-ads/)
 * Hi
 * Happy using the plugin and all works well. We now have a new requirement to track
   conversions from Google Ads. Part of this requires us to add a new gtag line 
   to the code inserted by the plugin.
 * Is this possible to do?
 * Thanks
 * Roger

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

 *  Plugin Support [mouli a11n](https://wordpress.org/support/users/mouli/)
 * (@mouli)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/track-google-ads/#post-15119228)
 * [@attractmore](https://wordpress.org/support/users/attractmore/)
 * This would require some custom coding, but can certainly be achieved.
    The plugin
   code is open source so you have full access to it. However, customizing the code
   directly in the plugin is not the best approach as updates to the plugin will
   wipe out your changes. There is a filter called `woocommerce_gtag_snippet` which
   could be used to modify the gtag that is written to the page. You can find this
   filter here: [https://github.com/woocommerce/google-listings-and-ads/blob/bc7c54c01fdf7584c0a75962fc17219238473d63/src/Google/GlobalSiteTag.php#L92](https://github.com/woocommerce/google-listings-and-ads/blob/bc7c54c01fdf7584c0a75962fc17219238473d63/src/Google/GlobalSiteTag.php#L92)
 * This suggests that you could create a function in your themes `functions.php`
   file that would add the additional gtag.
 * If you need help with this, I suggest you get help from:
 * * A local web developer
    * [Codeable.io]([https://woocommerce.com/codeable/](https://woocommerce.com/codeable/))*[
   WooExperts]([http://www.woocommerce.com/experts/](http://www.woocommerce.com/experts/))*[
   Stackexchange]([http://wordpress.stackexchange.com/help/on-topic](http://wordpress.stackexchange.com/help/on-topic))
 * If you are comfortable with coding yourself and have questions, I would recommend
   that you join the [WooCommerce Slack Community]([https://woocommerceslack.herokuapp.com](https://woocommerceslack.herokuapp.com)),
   or the [Advanced WooCommerce Facebook group]([https://www.facebook.com/groups/advanced.woocommerce](https://www.facebook.com/groups/advanced.woocommerce)).
 * I hope that helps you to figure it out.
 *  Thread Starter [attractmore](https://wordpress.org/support/users/attractmore/)
 * (@attractmore)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/track-google-ads/#post-15129208)
 * [@mouli](https://wordpress.org/support/users/mouli/)
 * Thanks for your response.
 * The filter that you link to in Github is for a different plugin (Google Listsings
   and Ads) whereas my question related to Woocommerce Google Analytics Integration.
 * Is there something similar available for the Woocommerce Google Analytics Integration
   plugin?
 * Thanks
 * Roger
 *  Plugin Support [B C. a11n](https://wordpress.org/support/users/battouly/)
 * (@battouly)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/track-google-ads/#post-15135717)
 * Hi [@attractmore](https://wordpress.org/support/users/attractmore/),
 * I do see reference to WooCommerce Google Analytics Integration from [the link](https://github.com/woocommerce/google-listings-and-ads/blob/bc7c54c01fdf7584c0a75962fc17219238473d63/src/Proxies/GoogleGtagJs.php)
   Mouli shared above, please have a look.
 * Thanks!
 *  [Joey – a11n](https://wordpress.org/support/users/jricketts4/)
 * (@jricketts4)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/track-google-ads/#post-15166402)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   we’ll be here if and/or when you are ready to continue.

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

The topic ‘Track Google Ads’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-google-analytics-integration/assets/icon-256x256.
   png?rev=3234358)
 * [Google Analytics for WooCommerce](https://wordpress.org/plugins/woocommerce-google-analytics-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-google-analytics-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [Joey – a11n](https://wordpress.org/support/users/jricketts4/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/track-google-ads/#post-15166402)
 * Status: resolved