victor-falcon / Woocommerce-Adword-Conversion-Tracking-Plugin

Easily track your conversions from Adwords in Woocommerce
http://victorfalcon.es/wc-adwords-conversion-tracking/
7 stars 1 forks source link

HTML optimization breaks tracking code #3

Open optimalisatie opened 9 years ago

optimalisatie commented 9 years ago

Hi!

First of all many thanks for the great plugin!

I wanted to report a bug that is related to HTML optimizers such as the plugin Autoptimize. The optimizer causes the tracking code to break.

https://wordpress.org/support/topic/autoptimize-breaking-google-remarketing-code

https://support.google.com/tagassistant/answer/2947038?hl=en#cdata_comments

The cause is mainly that /* <![CDATA[ */ is stripped.

To prevent this from happening the tracking code should be wrapped in the following tags:

<!--noptimize-->
...
<!--/noptimize-->

I hope you find this suggestion useful.

Best, Jan Jaap

victor-falcon commented 8 years ago

Thanks. Can you made a pull request?