forked from pantheon-systems/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-ssr.js
19 lines (17 loc) · 947 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/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="086499a2-34e7-4e84-9fb1-0efb316b53bb" />,
function OptanonWrapper() {
window.dataLayer.push({event:'OneTrustGroupsUpdated'})
}
])
}