Hello, Malcolm,
Thank you for reaching out to us.
To add Google Tag Manager (GTM) code, you can insert it into the header or footer of your site. This is often done through the 3rd party plugin https://wordpress.org/plugins/wp-headers-and-footers/ , or by editing the header.php file (copy file from the XStore parent theme to the child).
Best Regards,
8Theme’s Team