Web packages and Cookies Policy

If your Web Package requires to store Cookies on the visitors devices, you must respect the users cookies consent choice. Hopefully, PageFabric includes this mechanism natively.

In the BuildActions section of the manifest file, you have to specify the CookieStrategy attribute of the ImportResource node.

Note: By specifying a CookieStrategy attribute, PageFabric will disable the resource until the visitors accept the specified Cookies. It means that your script may not run on visitors devices. A best practice would be not to include core code in potential disabled script files because it could result in a non functional website.

<BuildActions>

<!-- Will import this resource only if the visitor consents to "Social" Cookies -->

<ImportResource CookieStrategy="social">library.social.js</ImportResource>

</BuildActions>

Here are the types of Cookies that are supported by PageFabric websites:

Name
Description
social
Represents the cookies that are used for social features such as Social Networks, chat and comments extensions.
marketing
Represents the cookies that are used for marketing and analytic purposes, such as Google Analytics, advertising.
Improve your PageFabric skills

Explore user guide

Have a question?

Join us on twitter