diff --git a/gatsby-ssr.js b/gatsby-ssr.js
index 31bc3864b5e..d8f34f3a386 100644
--- a/gatsby-ssr.js
+++ b/gatsby-ssr.js
@@ -38,25 +38,25 @@ export const onRenderBody = ({ setHeadComponents }) => {
/>,
// GTM setup
- gtmTrackingId && (
+ (gtmTrackingId && (
- ),
- gtmTrackingId && (
+ )),
+ (gtmTrackingId && (
- ),
+ )),
// Hotjar setup
- hotjarId && (
+ (hotjarId && (