chore(google): Add google scripts (#283)
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
8c6598f3a6
commit
1b173bc97c
@ -26,6 +26,20 @@ exports.onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => {
|
|||||||
async='true'
|
async='true'
|
||||||
key='chai-CDN'
|
key='chai-CDN'
|
||||||
src='https://cdnjs.cloudflare.com/ajax/libs/chai/4.1.2/chai.min.js'
|
src='https://cdnjs.cloudflare.com/ajax/libs/chai/4.1.2/chai.min.js'
|
||||||
|
/>,
|
||||||
|
<script
|
||||||
|
async={true}
|
||||||
|
src='https://www.googletagmanager.com/gtag/js?id=AW-795617839'
|
||||||
|
/>,
|
||||||
|
<script
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: `
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
gtag('config', 'AW-795617839');
|
||||||
|
`
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user