Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds dap #792

Merged
merged 24 commits into from
Mar 28, 2024
Merged

Adds dap #792

merged 24 commits into from
Mar 28, 2024

Conversation

sadiejay
Copy link
Collaborator

No description provided.

<script src="{{ site.baseurl }}/assets/js/styleguide.js"></script>
<script async id="_fed_an_ua_tag" src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DOC&amp;subagency=CEN" type="text/javascript"></script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be moved to head.html so that it's loaded within the head HTML tags.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@curt-mitch-census I think I fixed this issue and would appreciate input!

Copy link
Member

@curt-mitch-census curt-mitch-census Mar 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sadiejay Sorry, I should have been more specific: you were right to move the DAP script to the head.html, according to their suggested documentation. However, I think you can keep the styleguide.js file within the scripts.html file along with the uswds.min.js file to keep the non-analytics JavaScript files in one place. My apologies for the mixup!

Copy link
Collaborator Author

@sadiejay sadiejay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@curt-mitch-census
Thank you for catching this! Will move these to head!

Copy link
Member

@curt-mitch-census curt-mitch-census left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some small comments on the location of the script tag for the styleguide.js file, otherwise this LGTM! 👍

_includes/head.html Outdated Show resolved Hide resolved
_includes/scripts.html Show resolved Hide resolved
@sadiejay sadiejay merged commit f8d4aba into main Mar 28, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants