diff --git a/docs/gatsby.md b/docs/gatsby.md
index dbcf44be..0fa0807d 100644
--- a/docs/gatsby.md
+++ b/docs/gatsby.md
@@ -22,7 +22,7 @@ The following is an example of including the `` component in `gatsby
import React from 'react';
import { Partytown } from '@builder.io/partytown/react';
-export const onRenderBody = ({ setHeadComponents }) => {
+export const onRenderBody = ({ setHeadComponents, setPreBodyComponents }) => {
setHeadComponents([
,