Title: Error when activating plugin
Last modified: August 22, 2016

---

# Error when activating plugin

 *  Resolved [Tropical Webhost](https://wordpress.org/support/users/afaast/)
 * (@afaast)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-12/)
 * Error when activating plugin with WordPress 4 with latest Woocommerce.
 * [https://wordpress.org/plugins/woocommerce-google-adwords-conversion-tracking-tag/](https://wordpress.org/plugins/woocommerce-google-adwords-conversion-tracking-tag/)

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

 *  Thread Starter [Tropical Webhost](https://wordpress.org/support/users/afaast/)
 * (@afaast)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-12/#post-5335182)
 * When activating the plugin I get “The plugin does not have a valid header.”
 * WordPress 4.0
    WooCommerce Version 2.2.4 WooCommerce Google AdWords conversion
   tracking tag 0.1.7
 *  Plugin Author [alekv](https://wordpress.org/support/users/alekv/)
 * (@alekv)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-12/#post-5335187)
 * Hi
 * I’ve tested it under WP 4.0 WC 2.2.4 and the Canvas theme. All works fine. Therefore
   I suppose this is a problem with your theme. The plugin currently uses the wp_head
   hook to add it’s code to the page. The wp_head hook is available in most of the
   themes, but unfortunately not in all of them.
 * Maybe it works with the wp_footer hook. You could try to change the function 
   in the plugin from
 * add_action( ‘wp_head’, array( $this, ‘GoogleAdWordsTag’ ));
 * to
 * add_action( ‘wp_footer’, array( $this, ‘GoogleAdWordsTag’ ));
 * If this doesn’t work I’ve got no easy solution for you.
 *  Thread Starter [Tropical Webhost](https://wordpress.org/support/users/afaast/)
 * (@afaast)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-12/#post-5335198)
 * I’m using Avada so that could have been the problem. I tried another plugin and
   it is working but thanks for the reply!
 *  Plugin Author [alekv](https://wordpress.org/support/users/alekv/)
 * (@alekv)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-12/#post-5335199)
 * You could test this by switching to a standard theme like Twenty Twelve for a
   moment and try to activated the plugin. If it works, the problem lies within 
   Avada.
 * You could send me the theme and I’ll have a look into it, maybe there is a different
   solution which works better for all. [info@wolfundbaer.ch](https://wordpress.org/support/topic/error-when-activating-plugin-12/info@wolfundbaer.ch?output_format=md)
 *  [MoghillPat](https://wordpress.org/support/users/moghillpat/)
 * (@moghillpat)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-12/#post-5335237)
 * Same issue for me – WooCommerce 2.2.8, WordPress 4.0 and the latest version of
   WooThemes Canvas.
 * On installation I get The plugin does not have a valid header error, so I hit
   the back button (getting an install failed message), then to the main plugins
   screen, where the plugin appears as it should.
 * Activate it from there and it will work. I added my settings and it correctly
   output these into the order-received page.
 * So it works but there’s a glitch on activation.
 * Hope this helps.
 *  Plugin Author [alekv](https://wordpress.org/support/users/alekv/)
 * (@alekv)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-12/#post-5335238)
 * I pushed out a new version which should fix the issue.
 * Thanks for your feedback.
 *  [baars.jan](https://wordpress.org/support/users/baarsjan/)
 * (@baarsjan)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-12/#post-5335256)
 * Same problem for me.
 * I can still activate the plug in, though, but it seems like the tag is not showing
   on my thank you page.
 * [http://thaivillage.org/thanks/](http://thaivillage.org/thanks/)
 *  Plugin Author [alekv](https://wordpress.org/support/users/alekv/)
 * (@alekv)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-12/#post-5335279)
 * Hi baars.jan
 * The tag only shows up on the thankyou page of a real order. The URL would look
   similar like [http://thaivillage.org/thanks/order-reveived/1234567/?key=wc_order_123456789](http://thaivillage.org/thanks/order-reveived/1234567/?key=wc_order_123456789)
 * Cheers
    Aleks

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

The topic ‘Error when activating plugin’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-google-adwords-conversion-tracking-tag/assets/
   icon-256x256.png?rev=2704744)
 * [Pixel Manager for WooCommerce – Conversion Tracking, Google Ads, GA4, TikTok, Dynamic Remarketing](https://wordpress.org/plugins/woocommerce-google-adwords-conversion-tracking-tag/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-google-adwords-conversion-tracking-tag/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-google-adwords-conversion-tracking-tag/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-google-adwords-conversion-tracking-tag/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-google-adwords-conversion-tracking-tag/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-google-adwords-conversion-tracking-tag/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [alekv](https://wordpress.org/support/users/alekv/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-12/#post-5335279)
 * Status: resolved