how to add custom datalayer in woocommerce without plugin
open wordpress dashboeard->Apperance->Edit Themes->functions.php
place the code at the end of the file so it would not effect anything else.
I provide the link to the orignal post below be sure to check it for more details.