mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-02 04:20:34 -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>
|
||||
|
||||
@@ -235,4 +235,12 @@
|
||||
<!--[if gt IE 8]><!-->
|
||||
<script type="text/javascript" src="{{ asset_url('javascripts/all.js') }}"></script>
|
||||
<!--<![endif]-->
|
||||
<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>
|
||||
{% endblock %}
|
||||
|
||||
@@ -126,5 +126,14 @@
|
||||
|
||||
<script src="/static_503/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