Title: Google Ads Code
Last modified: August 25, 2018

---

# Google Ads Code

 *  Resolved [mdlaat](https://wordpress.org/support/users/mdlaat/)
 * (@mdlaat)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/google-ads-code/)
 * Hi,
    Thank you for the plugin. In order to collect succesful google ad, google
   wants me to add a line: gtag(‘config’, ‘AW-xxxxxxx’); right before the </script
   > of the google analytics script.
 * Is it possible to do this with this plugin?
    Thank you.

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

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/google-ads-code/#post-10624366)
 * Yep. You can add that line to the setting, “Custom GA Code”. Then save changes
   and done. You can verify that everything is correct by viewing the tracking code
   via the source code of your site’s pages.
 *  Thread Starter [mdlaat](https://wordpress.org/support/users/mdlaat/)
 * (@mdlaat)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/google-ads-code/#post-10628402)
 * Hi Jeff, thank you for the reply.
    unfortunately the plugin seems to ignore the“
   Custom GA code”. When filled in, the result in the source seems the same as when
   left blank:
 * `<script async src="https://www.googletagmanager.com/gtag/js?id=xxxx"></script
   > </head>`
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/google-ads-code/#post-10629518)
 * I made a video that shows how it works normally (zipped .mov file):
 * [https://perishablepress.com/share/ga-custom-code.zip](https://perishablepress.com/share/ga-custom-code.zip)
 * If that is not happening for you, something like a plugin or your theme may be
   interfering. In such case, the best way to determine the issue would be to do
   some [basic troubleshooting](https://perishablepress.com/how-to-troubleshoot-wordpress/).
 * Let me know if I can provide any further infos, glad to help however possible.
 *  Thread Starter [mdlaat](https://wordpress.org/support/users/mdlaat/)
 * (@mdlaat)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/google-ads-code/#post-10629963)
 * Thank you; working now!
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/google-ads-code/#post-10630046)
 * Great! Please [rate the plugin](https://wordpress.org/support/plugin/ga-google-analytics/reviews/?rate=5#new-post)
   if you are able, thank you mdlaat!

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

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

 * ![](https://ps.w.org/ga-google-analytics/assets/icon-256x256.png?rev=2053004)
 * [GA Google Analytics – Connect Google Analytics to WordPress](https://wordpress.org/plugins/ga-google-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ga-google-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ga-google-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/ga-google-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ga-google-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ga-google-analytics/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/google-ads-code/#post-10630046)
 * Status: resolved