Skip to content

Commit

Permalink
docs: Add setPreBodyComponents to onRenderBody prop (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
edward-simpson committed Jul 25, 2022
1 parent 28add0d commit d729e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/gatsby.md
Expand Up @@ -22,7 +22,7 @@ The following is an example of including the `<Partytown/>` component in `gatsby
import React from 'react';
import { Partytown } from '@builder.io/partytown/react';

export const onRenderBody = ({ setHeadComponents }) => {
export const onRenderBody = ({ setHeadComponents, setPreBodyComponents }) => {
setHeadComponents([
<Partytown key="partytown" debug={true} forward={['dataLayer.push']} />,
<script key="analytics" src="https://example.com/analytics.js" type="text/partytown" />
Expand Down

1 comment on commit d729e30

@vercel
Copy link

@vercel vercel bot commented on d729e30 Jul 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.