Genesis makes it easy to add scripts, such as tracking and analytics scripts, to the header and footer of your website, as well as in the body of your posts and pages.
In this article:
Go to Appearance > Customize > Theme Settings to add scripts to the header and/or footer of every page across your entire site, as shown below.
Next, click Header/Footer Scripts to access the header/footer script boxes, as shown below.
Enter your script(s) into the Header Scripts and/or Footer Scripts fields as shown below, then click Publish.
After you save your settings, your scripts are included in the source code for every page on your website.
Page/Post Header and Body Scripts
You can add scripts to the header or body of a specific page or post on the page/post entry screen. Select an existing entry to edit, or go to Pages/Posts > Add New in your dashboard and scroll down to the Scripts box.
Note: If you enter body scripts, use the Body Scripts Position option to select whether to add them to the top (after the opening <body> tag) or bottom (before the closing </body> tag).
In the example below, we’ve entered some text in the Body Scripts box and selected the Bottom body scripts position.
After publishing the page/post, the scripts are included in the source code for that page/post, as shown below.