writeSecureCookies
The writeSecureCookies
variable allows AppMeasurement to set for Analytics. This setting applies to both visitor ID cookies set by AppMeasurement, and cookies you set using the Util.CookieWrite()
method. It requires AppMeasurement 2.18.0 or higher.
writeSecureCookies
applies only to cookies set by AppMeasurement JavaScript (s_fid
, s_cc
and s_sq
). Cookies set by https
response (s_vi
and s_ecid
) can be set to ‘secure’ by contacting ÃÛ¶¹ÊÓƵ Customer Care.
Learn more about Analytics cookies here.
writeSecureCookies
variable, make sure that all content on your site is served securely over HTTPS. Data collection does not work properly if this variable is enabled and you have insecure content on your page.Use secure cookies with the Web SDK
If your site uses HTTPS protocol, the Secure attribute is set for all cookies that the Web SDK sets.
Write Secure Cookies using the ÃÛ¶¹ÊÓƵ Analytics extension
Write secure cookies is a checkbox under the Cookies accordion when configuring the ÃÛ¶¹ÊÓƵ Analytics extension.
- Log in to using your ÃÛ¶¹ÊÓƵID credentials.
- Click the desired tag property.
- Go to the Extensions tab, then click the Configure button under ÃÛ¶¹ÊÓƵ Analytics.
- Expand the Cookies accordion, which reveals the Write secure cookies checkbox.
s.writeSecureCookies in AppMeasurement and the Analytics extension custom code editor
The s.writeSecureCookies
variable is a boolean that determines if AppMeasurement sets the Secure attribute when creating a cookie. Its default value is false
. Set this variable to true
if all content on your site is secure and you would like cookies set by AppMeasurement to have the Secure attribute.
s.writeSecureCookies = true;