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
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.
I’m using Avada so that could have been the problem. I tried another plugin and it is working but thanks for the reply!
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. [email protected]
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.
I pushed out a new version which should fix the issue.
Thanks for your feedback.
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/
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
Cheers
Aleks