Skip to content

Commit

Permalink
EDSC-4000: Install GSA's Digital Analytics Program (DAP) tracking code (
Browse files Browse the repository at this point in the history
#1718)

* EDSC-4000: added dap script to wrapper.html

* EDSC-4000: fixed a bit of formatting stuff

* EDSC-4000: added script to body.html as well

* removed link from partials

* made the closing script tag on the next line

* reverted meta tag to look like it used to

* Update static/src/partials/body.html

Co-authored-by: Ed Olivares <34591886+eudoroolivares2016@users.noreply.github.com>

* EDSC-4000: made it so this only shows up when no in dev mode.

* added another =

---------

Co-authored-by: Ed Olivares <34591886+eudoroolivares2016@users.noreply.github.com>
  • Loading branch information
bnp26 and eudoroolivares2016 authored Feb 23, 2024
1 parent f419770 commit 648e617
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static.webpack.config.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const { availablePortals } = require('./portals/index')
const {
analytics,
defaultPortal,
env,
feedbackApp
} = config.getApplicationConfig()

Expand Down Expand Up @@ -141,6 +142,7 @@ const StaticCommonConfig = {
{
path: path.join(__dirname, './static/src/partials/body.html'),
options: {
env,
feedbackApp,
gtmPropertyId: analytics.gtmPropertyId,
showTophat: ui.showTophat
Expand Down
8 changes: 8 additions & 0 deletions static/src/partials/body.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,11 @@ <h3 class="fallback-page__heading">Your browser is out of date</h3>
></script>
<script type="text/javascript">feedback.init({ showIcon: false });</script>
<% } %>
<% if (env !== 'dev') { %>
<script
async
type="text/javascript"
src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=NASA&subagency=GSFC"
id="_fed_an_ua_tag">
</script>
<% } %>

0 comments on commit 648e617

Please sign in to comment.