Title: SyntaxError: Unexpected string when using search.
Last modified: March 22, 2021

---

# SyntaxError: Unexpected string when using search.

 *  Resolved [danihuge](https://wordpress.org/support/users/danihuge/)
 * (@danihuge)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-string-when-using-search/)
 * Hi,
 * I got “SyntaxError:” Unexpected string when using search.
 * The generated code page is:
    fbq(“trackCustom”,”Search”,{search_string:”sample”,
   content_type:”product”, content_ids:”[“‘1′,’2’,’3′”]”});
 * I fixed the code and now the final code is the next one and it is working ok.
   
   I removed double quotes in content_ids array.
 * fbq(“trackCustom”,”Search”,{search_string:”sample”, content_type:”product”, content_ids:”[‘
   1′,’2’,’3′”]});
 * Hope it helps to you if you have a bug.
 * Regards,

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

 *  [supportadtribes](https://wordpress.org/support/users/supportadtribes/)
 * (@supportadtribes)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-string-when-using-search/#post-14218352)
 * Hi,
 * Thanks for using our plugin and reaching out to us. This indeed seems to be happening
   on just the search result page. In the next release of our plugin will push out
   a fix for this.
 * Thanks for lettings us know!
 *  [supportadtribes](https://wordpress.org/support/users/supportadtribes/)
 * (@supportadtribes)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/syntaxerror-unexpected-string-when-using-search/#post-14282665)
 * Hi,
 * Assuming the issue at hand has been resolved or our support is no longer required
   I am going to close this topic for housekeeping reasons now.
 * Please do not hesitate to reach out to our support-team again whenever you need
   our help.
 *  Thread Starter [danihuge](https://wordpress.org/support/users/danihuge/)
 * (@danihuge)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/syntaxerror-unexpected-string-when-using-search/#post-14282696)
 * Thanks! 👍

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

The topic ‘SyntaxError: Unexpected string when using search.’ is closed to new replies.

 * ![](https://ps.w.org/woo-product-feed-pro/assets/icon-256x256.png?rev=3111496)
 * [Product Feed PRO for WooCommerce by AdTribes – Product Feeds for WooCommerce](https://wordpress.org/plugins/woo-product-feed-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-feed-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-feed-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-feed-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-feed-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-feed-pro/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [danihuge](https://wordpress.org/support/users/danihuge/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/syntaxerror-unexpected-string-when-using-search/#post-14282696)
 * Status: resolved