Add analytics script (#707)

* Add analytics script

- also add the geoplatform official site to yml file

* update analytics link
This commit is contained in:
Vim 2021-09-20 15:00:50 -07:00 committed by GitHub
parent 58f4102d6f
commit aaf304fc89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -95,3 +95,4 @@ jobs:
echo "Github pages: https://usds.github.io/justice40-tool/$DESTINATION_FOLDER/en"
echo "Standard S3 bucket version (http only) : http://usds-geoplatform-justice40-website.s3-website-us-east-1.amazonaws.com/justice40-tool/$DESTINATION_FOLDER/en"
echo "Cloudfront https: https://d2zjid6n5ja2pt.cloudfront.net"
echo "Geoplatform official site: https://screeningtool.geoplatform.gov/en/"

View file

@ -14,7 +14,13 @@ const Layout = ({children, location, title}: ILayoutProps) => {
// @ts-ignore
return (
<>
<Helmet title={title} defer={false} />
<Helmet title={title} defer={false}>
<script async
type="text/javascript"
id="_fed_an_ua_tag"
src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DOI&sitetopic=cejst&enhlink=true">
</script>
</Helmet>
<URLFlagProvider location={location}>
<J40Header />
<main id={'main-content'}>