Title: Javascript error ecomm_prodid.push is not a function
Last modified: September 1, 2016

---

# Javascript error ecomm_prodid.push is not a function

 *  Resolved [ampersandmatt](https://wordpress.org/support/users/ampersandmatt/)
 * (@ampersandmatt)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-ecomm_prodidpush-is-not-a-function/)
 * The site is updated to the latest versions of all plugins and all caches have
   been cleared.
 * The Tag Manager plugin is generating the following error, which is then stopping
   other code on the site from completing.
 *     ```
       TypeError: dataLayer[i].ecomm_prodid.push is not a function
       https://bootandsaw.co.uk/product-category/surfboard-racks/surfboard-racks/
       Line 76
       ```
   
 * As far as I can tell, I have followed the relevant updates from your new post
   regarding Tag Manager triggers and tags.
 * [https://wordpress.org/plugins/duracelltomi-google-tag-manager/](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)

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

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-ecomm_prodidpush-is-not-a-function/#post-7500887)
 * Hi,
 * Could you please update this one file on your instance?
 * [https://plugins.svn.wordpress.org/duracelltomi-google-tag-manager/trunk/integration/woocommerce.php](https://plugins.svn.wordpress.org/duracelltomi-google-tag-manager/trunk/integration/woocommerce.php)
 * This should solve the issue.
 * Thanks,
    Thomas
 *  Thread Starter [ampersandmatt](https://wordpress.org/support/users/ampersandmatt/)
 * (@ampersandmatt)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-ecomm_prodidpush-is-not-a-function/#post-7500889)
 * That seems to have done it. Thanks for the speedy response.

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

The topic ‘Javascript error ecomm_prodid.push is not a function’ 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/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [ampersandmatt](https://wordpress.org/support/users/ampersandmatt/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-ecomm_prodidpush-is-not-a-function/#post-7500889)
 * Status: resolved