Skip to content

Commit

Permalink
Merge branch 'main' into stevenh/rnd-3492-adobe-docs-not-loading-an-e…
Browse files Browse the repository at this point in the history
…rror-occurredthe-url-is
  • Loading branch information
emmerich authored Apr 4, 2024
2 parents 38ddce6 + 07085a5 commit ee6ce2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ async function fetchVisitorID(): Promise<string> {
* Accept or reject cookies.
*/
export function setCookiesTracking(enabled: boolean) {
cookies.set(GRANTED_COOKIE, enabled ? 'yes' : 'no');
cookies.set(GRANTED_COOKIE, enabled ? 'yes' : 'no', {
expires: 365,
});
}

/**
Expand Down

0 comments on commit ee6ce2f

Please sign in to comment.