analytics.js-integrations icon indicating copy to clipboard operation
analytics.js-integrations copied to clipboard

Adding secure cookie option

Open dixeebe opened this issue 3 years ago • 0 comments

What does this PR do? Adds an option to set secure cookies

Are there breaking changes in this PR? No

Testing Tested locally and wrote some tests to make sure the option flag works. The checkmark represents a secure cookie. Screen Shot 2021-11-29 at 1 35 39 PM

Any background context you want to provide? Some third-party auditing tools require to have sites only set secure cookies. This will add the option to control this setting when installing the google-analytics tag. This is already supported by the tag.

Is there parity with the server-side/android/iOS integration components (if applicable)? NA

Does this require a new integration setting? If so, please explain how the new setting works Yes, the secureCookie option will allow the tag to set secure google analytics cookies if set to true.

Links to helpful docs and other external resources How to setup a secure cookie in google analytics https://developers.google.com/analytics/devguides/collection/analyticsjs/cookies-user-id

dixeebe avatar Nov 29 '21 20:11 dixeebe