Title: Bug Maybe?
Last modified: August 30, 2016

---

# Bug Maybe?

 *  Resolved [remainsunknown](https://wordpress.org/support/users/remainsunknown/)
 * (@remainsunknown)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/bug-maybe-1/)
 * I got an error in the console: that there’s a missing } somewhere, turns out 
   the woocoommerce php file str_replace’s every “‘” with “\\'” (which displays 
   as \’ and screws up all the following quotes) which leads to the error, so my
   question is: is this double slash on purpose and if so, why?
 * have a great day!
 * [https://wordpress.org/plugins/duracelltomi-google-tag-manager/](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)

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

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/bug-maybe-1/#post-6274087)
 * I have some trouble with this 🙂
 * The main problem is that during the output, I just call PHP’s json_encode() which
   does the hard work for me 🙂
 * There was an issue with ‘ in product names which was fixed but for some reason
   I can now see the same on my testing environment:
    [http://woo.duracelltomi.hu/product-category/music/albums/](http://woo.duracelltomi.hu/product-category/music/albums/)
 * This makes fixing easier but for example I still do not understand why this encoding
   makes any mess with the Korean language 🙂
 *  Thread Starter [remainsunknown](https://wordpress.org/support/users/remainsunknown/)
 * (@remainsunknown)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/bug-maybe-1/#post-6274129)
 * Yeah, it’s not a big deal for me actually (right now, I just wanted to let you
   know) because I don’t need the single quotes in GA, so i just replaced them with
   nothing, works for me right now 🙂
 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/bug-maybe-1/#post-6274150)
 * I managed to solve this issue, I would appreciate if you would have time to look
   at it on the mentioned test site.

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

The topic ‘Bug Maybe?’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/bug-maybe-1/#post-6274150)
 * Status: resolved