Skip to content

Commit 73adece

Browse files
Merge pull request #1551 from ASU/UDS-1941-Cookie-Consent-Opt-Out-in-Footer
UDS-1941: Cookie Consent Opt Out in Footer
2 parents 41d6d16 + fd022c4 commit 73adece

File tree

5 files changed

+194
-142
lines changed

5 files changed

+194
-142
lines changed

packages/component-header-footer/src/footer/components/Legal/index.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,40 +55,43 @@ const Legal = () => {
5555
</a>
5656
<a
5757
className="nav-link"
58-
href={LEGAL_URLS.PRIVACY}
58+
href={LEGAL_URLS.TERMS_OF_USE}
5959
onFocus={() =>
6060
trackGAEvent({
6161
...DEFAULT_GA_EVENT,
62-
text: "privacy",
62+
text: "terms of use",
6363
})
6464
}
6565
>
66-
Privacy
66+
Terms of Use
6767
</a>
6868
<a
6969
className="nav-link"
70-
href={LEGAL_URLS.TERMS_OF_USE}
70+
href={LEGAL_URLS.EMERGENCY}
7171
onFocus={() =>
7272
trackGAEvent({
7373
...DEFAULT_GA_EVENT,
74-
text: "terms of use",
74+
text: "emergency",
7575
})
7676
}
7777
>
78-
Terms of Use
78+
Emergency
7979
</a>
8080
<a
8181
className="nav-link"
82-
href={LEGAL_URLS.EMERGENCY}
82+
href={LEGAL_URLS.PRIVACY}
8383
onFocus={() =>
8484
trackGAEvent({
8585
...DEFAULT_GA_EVENT,
86-
text: "emergency",
86+
text: "privacy",
8787
})
8888
}
8989
>
90-
Emergency
90+
Privacy
9191
</a>
92+
<button type="button" id="manualConsentoptout">
93+
Manage my privacy settings
94+
</button>
9295
</nav>
9396
</div>
9497
</div>

packages/component-header-footer/src/footer/index.styles.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ const StyledFooter = styled.footer`
3232
a:focus,
3333
button:focus {
3434
outline: none;
35-
box-shadow: 0 0 0 2px var(--color-base-white), 0 0 0 4px var(--color-base-grey-7) !important;
35+
box-shadow: 0 0 0 2px var(--color-base-white),
36+
0 0 0 4px var(--color-base-grey-7) !important;
3637
-webkit-tap-highlight-color: transparent;
3738
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
3839
}
@@ -411,6 +412,27 @@ const StyledFooter = styled.footer`
411412
}
412413
}
413414
415+
//footer manual consent opt-out
416+
.footer-legal-links,
417+
.footer-menu,
418+
.nav {
419+
&.colophon #manualConsentoptout,
420+
#manualConsentoptout {
421+
color: #484848;
422+
border: none;
423+
background-color: transparent;
424+
width: auto;
425+
cursor: pointer;
426+
padding: 0;
427+
text-align: right;
428+
justify-self: end;
429+
font-size: 1rem;
430+
&:hover {
431+
text-decoration: underline;
432+
}
433+
}
434+
}
435+
414436
// Bootstrap Default Stylings
415437
.row {
416438
--bs-gutter-x: 24px;

packages/static-site/src/pages/DataLayerGuide.tsx

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ export const bookmarklet = `javascript:(${watchDataLayer.toString()
1212
.replace(/\s+/g, " ")})();`
1313

1414
const gtmCodes = {
15-
universal: "GTM-KDWN8Z",
16-
etDev: "GTM-PX7M299",
17-
etQA: "GTM-W3FGR6T",
18-
etProd: "GTM-WPVTBHL",
15+
universal: "GTM-KDWN8Z"
1916
};
2017

2118
const GtmCodeExample: FC<{ gtmCode: string }> = ({ gtmCode }) => {
@@ -92,27 +89,6 @@ const DataLayerGuide = () => {
9289
bundled.
9390
</p>
9491

95-
<h3>Benefits of Becoming part of GTM Product Community:</h3>
96-
<ul>
97-
<li>
98-
Receive consultation/assistance with GTM implementation and
99-
maintenance
100-
</li>
101-
<li>
102-
Receive information on any changes being made to Enterprise UTO
103-
GTM and how any changes might affect your site
104-
</li>
105-
<li>Provide feedback for any changes submitted</li>
106-
<li>
107-
Become a member of the larger GTM community as a member of a
108-
private slack channel to keep up with all the latest GTM news
109-
</li>
110-
<li>
111-
Coming Soon — Link to Service Now Request to register site –
112-
https://asu.service-now.com/xxxxxxx
113-
</li>
114-
</ul>
115-
11692
<h3>Best Practices for Implementing GTM</h3>
11793
<p>Install on test site first</p>
11894
<ul>
@@ -154,15 +130,6 @@ const DataLayerGuide = () => {
154130

155131
<p>Most ASU sites should implement the ASU Universal GTM.</p>
156132

157-
<p>
158-
Enterprise sites should implement the ASU Enterprise QA GTM on their
159-
&quot;DEV&quot; environment, and the ASU Enterprise Production GTM on their
160-
&quot;QA&quot; and &quot;Production&quot; environments. This may be configured using
161-
environmental variables. Each environment has its own GTM ID
162-
associated with it and care must be taken to use the appropriate GTM
163-
ID for each application environment.
164-
</p>
165-
166133
<p>
167134
Some units have their own GTM IDs. When multiple GTM IDs need to be
168135
used in a single site or application, follow the guidance on{" "}
@@ -175,15 +142,6 @@ const DataLayerGuide = () => {
175142
<h3>ASU universal GTM code</h3>
176143
<GtmCodeExample gtmCode={gtmCodes.universal} />
177144

178-
<h3>ET Enterprise Webapp Development GTM</h3>
179-
<GtmCodeExample gtmCode={gtmCodes.etDev} />
180-
181-
<h3>ET Enterprise Webapp QA GTM</h3>
182-
<GtmCodeExample gtmCode={gtmCodes.etQA} />
183-
184-
<h3>ET Enterprise Webapp Production GTM</h3>
185-
<GtmCodeExample gtmCode={gtmCodes.etProd} />
186-
187145
<a id="datalayer"></a>
188146
<h2>Adding the data layer</h2>
189147

packages/unity-bootstrap-theme/src/scss/extends/_globalfooter.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,26 @@ footer {
350350
@include nav-to-grid;
351351
}
352352
}
353+
354+
/*------------------------------------------------------------------
355+
8. Footer Colophon - Cookie Consent
356+
--------------------------------------------------------------------*/
357+
.footer-legal-links,
358+
.footer-menu,
359+
.nav {
360+
&.colophon #manualConsentoptout,
361+
#manualConsentoptout {
362+
color: #484848;
363+
border: none;
364+
background-color: transparent;
365+
width: auto;
366+
cursor: pointer;
367+
padding: 0;
368+
text-align: right;
369+
justify-self: end;
370+
font-size: 1rem;
371+
&:hover {
372+
text-decoration: underline;
373+
}
374+
}
375+
}

0 commit comments

Comments
 (0)