mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
Add code to delete old analytics cookies
This commit is contained in:
@@ -125,4 +125,13 @@
|
||||
|
||||
<script src="/static/javascripts/govuk-template.js"></script>
|
||||
|
||||
<script>
|
||||
if (window.GOVUK.cookie('_ga') !== null) {
|
||||
document.cookie = '_ga' + '=;expires=' + new Date() + ';domain=.' + window.location.hostname + ';path=/';
|
||||
}
|
||||
if (window.GOVUK.cookie('_gid') !== null) {
|
||||
document.cookie = '_gid' + '=;expires=' + new Date() + ';domain=.' + window.location.hostname + ';path=/';
|
||||
}
|
||||
</script>
|
||||
|
||||
</body></html>
|
||||
|
||||
Reference in New Issue
Block a user