Title: strpos() expects parameter 1
Last modified: August 22, 2018

---

# strpos() expects parameter 1

 *  Resolved [contemplate](https://wordpress.org/support/users/contemplate/)
 * (@contemplate)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/strpos-expects-parameter-1/)
 * I’m seeing hundreds of these errors:
 * PHP Warning: strpos() expects parameter 1 to be string, array given in /public_html/
   wp-content/plugins/woocommerce-google-analytics-pro/includes/class-wc-google-
   analytics-pro-integration.php on line 850
 * I wrote a small fix to be placed on line 850 before the if statement:
 *     ```
       if ( is_array($value) ){
           $value = implode(" ", $value);
       }
       ```
   
 * Hope this helps.

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

 *  Plugin Support [John Coy a11n](https://wordpress.org/support/users/johndcoy/)
 * (@johndcoy)
 * Automattic Happiness Engineer
 * [7 years, 8 months ago](https://wordpress.org/support/topic/strpos-expects-parameter-1/#post-10613994)
 * Hi [@contemplate](https://wordpress.org/support/users/contemplate/)
 * Do these errors show if you switch to a theme like Twenty Seventeen and disable
   all plugins except for WooCommerce and WooCommerce Google Analytics Integration?
 *  Thread Starter [contemplate](https://wordpress.org/support/users/contemplate/)
 * (@contemplate)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/strpos-expects-parameter-1/#post-10614052)
 * Based on the function that was throwing this error it looks like it is caused
   from us using the Monster Insights Google Analytics plugin found here:
    [https://wordpress.org/plugins/google-analytics-for-wordpress/](https://wordpress.org/plugins/google-analytics-for-wordpress/)
 * I didn’t try deactivating the plugin but simply made this patch 🙂

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

The topic ‘strpos() expects parameter 1’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-google-analytics-integration/assets/icon-256x256.
   png?rev=3234358)
 * [Google Analytics for WooCommerce](https://wordpress.org/plugins/woocommerce-google-analytics-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-google-analytics-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [contemplate](https://wordpress.org/support/users/contemplate/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/strpos-expects-parameter-1/#post-10614052)
 * Status: resolved