forked from pantheon-systems/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-ssr.js
19 lines (17 loc) · 909 Bytes
/
gatsby-ssr.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React from 'react'
/*
* Add global scripts to ensure Bootstrap and jQuery JS is included
*/
export const onRenderBody = ({ setPostBodyComponents }) => {
setPostBodyComponents([
<script key="jquery" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.1/jquery.min.js" />,
<script key="bootstrap" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" />,
<script key="twitter" src="https://platform.twitter.com/widgets.js" />,
<script type="text/plain" class="optanon-category-2" src="https://crometrics-assets.s3.us-east-2.amazonaws.com/ATP/1.1.5/atp.pantheon.min.js" async></script>,
// OneTrust Banner
<script src="https://cdn.cookielaw.org/langswitch/1e0d58d8-3a15-4544-a10a-efd792ffe07f.js" type="text/javascript" charSet="UTF-8" />,
function OptanonWrapper() {
window.dataLayer.push({event:'OneTrustGroupsUpdated'})
}
])
}