diff --git a/gatsby-ssr.js b/gatsby-ssr.js index 56487e5547d..a2c3e568e40 100644 --- a/gatsby-ssr.js +++ b/gatsby-ssr.js @@ -1,6 +1,6 @@ import React from 'react'; -export const onRenderBody = ({ setHeadComponents }) => { +export const onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => { const script = ` if(!window) window = {}; window.idaPageIsSPA = true; @@ -20,7 +20,7 @@ export const onRenderBody = ({ setHeadComponents }) => { }, }`; - return setHeadComponents([ + setHeadComponents([ , { key="fathom" defer />, + ]); + + setPostBodyComponents([