Google Tag Manager
Like any script, Heap can be installed via Google Tag Manager, or GTM for short. Because of the way GTM works, we strongly recommend setting the highest priority for Heap to be loaded.
To install, add the Heap snippet as a custom HTML tag and set it to fire on All Pages.