PixelYourSite Cookies, what they do, and how to control them

To perform various tasks, the PixelYourSite plugin uses several first-party cookies.

Cookies that PixelYourSite might use

CookieNotes
pbidIt allows the plugin to assign external_id to users, improving API events performance. The cookie life is set in the admin panel in days. External IDs can be turned ON/OFF on the plugin’s main page, under Events Parameters.
last_pysTrafficSourceIt allows the plugin to track the last traffic source.
last_pys_landing_pageIt allows the plugin to track the last landing page
pysTrafficSourceIt allows the plugin to track the traffic source.
pys_fb_event_idIt allows the plugin to assign unique event IDs used for the deduplication of tag/API events.
pys_first_visitIt configures the type of WooCommerce reports the plugin will track.
pys_landing_pageIt allows the plugin to track the last landing page.
pys_pinterest_event_idIt allows the plugin to assign unique event IDs used for the deduplication of tag/API Pinterest events.
pys_session_limitIt allows the plugin to configure the duration of a session, used for WooCommerce and EDD reports.
pys_start_sessionIt allows the plugin to start a session, used for WooCommerce and EDD reports.
pys_advanced_form_dataIt allows the plugin to track WordPress forms according to the settings. Used for API events, it can improve events’ performance.
productlistUsed for Google Analytics list tracking.
select_prod_listUsed for Google Analytics list tracking.
form_trackUsed to track forms.
hide_tag_Used to hide tags based on settings.

How to control pixels and cookies

It’s best to review the plugin’s Consent page.

Use pys_gdpr_ajax_enabledfilter to control the Ajax option for consent.

Use following filters to control each pixel:

pys_disable_by_gdpr

pys_disable_facebook_by_gdpr

pys_disable_analytics_by_gdpr

pys_disable_tiktok_by_gdpr

pys_disable_google_ads_by_gdpr

pys_disable_pinterest_by_gdpr

pys_disable_bing_by_gdpr.

The first filter will disable all pixels, other can be used to disable a particular pixel. Simply pass TRUE value to disable a pixel.


Use following filters to control each cookie:

pys_disable_all_cookie – disable all PYS cookies

pys_disable_first_visit_cookie – disable pys_first_visit cookie

pys_disable_landing_page_cookie – disable pys_landing_page & last_pys_landing_page cookies

pys_disable_trafficsource_cookie – disable pysTrafficSource & last_pysTrafficSource cookies

pys_disable_utmTerms_cookie – disable with prefix pys_ and last_pys_ cookies

pys_disable_utmId_cookie – disable with prefix pys_ and last_pys_ cookies

pys_disable_advanced_form_data_cookie – disable pys_advanced_form_data cookies

pys_disable_externalID_by_gdpr – disable pbid(external_id) cookie

To disable cookies, use filters where necessary.
First filter will disable all cookies, other can be used to disable particular cookie. Simply pass __return_true value to disable a cookie.

Example:
add_filter( 'pys_disable_advanced_form_data_cookie', '__return_true', 10, 2 );

Google Consent Mode V2

How to enable Google Consent Mode V2