If you want to insert your HEAP analytics into your WordPress website then you want to read this blog. This is simple and the code can either be inserted into the functions.php or your own plugin (Basic).
I assume you already signup for HEAP and ready to integrate it with your website. I create my own basic plugin for this but you can put it in your functions.php file. It really doesn’t matter, why I did it in a plugin is because I want to build the plugin into something more.
Please change the values “Your name” and “Your ID”.
You will find “Your ID” at the bottom of your script. After that, you are all set and ready to go. Activate the plugin or save functions.php file.
[snippet slug=heap lang=php]