Skip to content
  • Home
  • Developers
  • API
  • Releases
  • Community
  • University
  • Status
  • Home
  • Developers
  • API
  • Releases
  • Community
  • University
  • Status
Home Getting Started Getting Started FAQs Heap.push is not a function Console Error
Session Replay Getting Started Administration Data Management Definitions Charts Analysis Examples Heap Plays Integrations Heap Connect Data Privacy

Table of Contents

Was this article helpful?

Yes No

Thank you for your feedback!

Heap.push is not a function Console Error


Oftentimes the heap.push error occurs when Heap is unintentionally loaded twice on a site. For example, Heap might be loading once from the Heap snippet in your </head> tag (inserted during Web Installation) and also through a tag manager such as Google Tag Manager (GTM), Tealium, or Segment.

The error typically presents itself within the Developer Console when a Heap API call is made. In the example below, the heap.track call results in the heap.push error. 

A screenshot of the Google Chrome Developer Console where the API call Heap.track results in an error that reads "window.heap.push is not a function"

The fix for this error is to remove all extra instances of Heap and ensure it is only loading a single time on your site.

If you need help, please post in Heap Community or visit our Get support page.

Was this article helpful?

Yes No

Thank you for your feedback!

Last updated January 13, 2023.

Error messageheap.pushSE doc
  • Blog
  • Partners
  • Legal
  • Security
  • Terms
  • About
  • Careers
  • Privacy
  • Contact Us

© 2023 Heap, Inc.