Hello, is this possible to add by installing an app? or with code?
Only if you are on a Shopify plus plan.
It used to be possible to add it in the additional code for Google Analytics but non-GA code is now stripped out.
Asa @ Appifiny