Skip to content

Commit

Permalink
Update Google Analytics code (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredbain authored Jan 17, 2024
1 parent 478592b commit b06bd4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ai_eo: false
twitter: pifgov

# Configuration for Google Analytics, add your UA code here:
google_analytics_ua: UA-67722639-1
google_analytics_ua: G-VPLQ96Y27P

# Configuration for DAP, add your agency ID here:
dap_agency: GSA
Expand Down
3 changes: 1 addition & 2 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

// `forceSSL` was used for analytics.js (the older Google Analytics script). It isn't documented for gtag.js, but the term occurs in the gtag.js code; figure it doesn't hurt to leave it in. -@afeld, 5/29/19
gtag('config', '{{ site.google_analytics_ua }}', { 'anonymize_ip': true, 'forceSSL': true });
gtag('config', '{{ site.google_analytics_ua }}');
</script>
{% endif %}

Expand Down

0 comments on commit b06bd4c

Please sign in to comment.