PowerReviews incorporates cookie-based tracking by default to monitor user interactions on your website. To learn more about cookie tracking, click here.
This article contains the following sections:
- Disabling Tracking on Your Entire Website
- Managing Tracking on a Per-User Basis
- Updating Tracking Preferences After Page Load
Disabling Tracking on Your Entire Website
If you wish to disable cookie tracking functionality across your entire website, please contact PowerReviews Technical Support for assistance.
Managing Tracking on a Per-User Basis
You have the flexibility to control cookie tracking on a per-user basis. Simply modify the standard function by adding the SOCIAL_MEASUREMENT_DATA parameter based on user preferences as selected through a third party software such as OneTrust. Accepted values are:
- ENABLED: A cookie is created and included in user activity data sent through Interaction Beacons
- DISABLED: No cookie is created and Interaction Beacons do not run
- NO_COOKIES: No cookie is created, but Interaction Beacons send anonymous activity data
The sample code below illustrates the SOCIAL_MEASUREMENT_DATA parameter in use.
<script src="https://ui.powerreviews.com/stable/4.1/ui.js" async></script>
<script>
window.pwr = window.pwr || function () {
(pwr.q = pwr.q || []).push(arguments);
};
pwr("render", {
api_key: 'API_KEY',
locale: 'LOCALE',
merchant_group_id: 'MERCHANT_GROUP_ID',
merchant_id: 'MERCHANT_ID',
page_id: 'PAGE_ID',
review_wrapper_url: 'WRAPPER_URL',
SOCIAL_MEASUREMENT_DATA: 'DISABLED', // or 'ENABLED' or ‘NO_COOKIES’ as per preference
components: {
ReviewSnippet: 'pr-reviewsnippet',
ReviewDisplay: 'pr-reviewdisplay'
}
});
</script>
Updating Tracking Preferences After Page Load
For users who adjust their tracking preferences after the page has loaded, use the following separate function with the updated status:
pwr('configure', { SOCIAL_MEASUREMENT_DATA: 'DISABLED' }); // or 'ENABLED' or ‘NO_COOKIES’
This function accommodates changes in user tracking preferences, deleting or creating relevant cookies accordingly.
Ensure the updated tracking selection is applied to the render function for subsequent page loads.