{"id":15092,"date":"2021-07-06T10:58:12","date_gmt":"2021-07-06T04:58:12","guid":{"rendered":"https:\/\/help.codexpert.io\/?post_type=docs&#038;p=15092"},"modified":"2026-06-29T11:25:06","modified_gmt":"2026-06-29T11:25:06","slug":"xdomain-cookie-sharing","status":"publish","type":"helpwp_doc","link":"https:\/\/wcaffiliate.com\/docs\/admin-dashboard\/xdomain-cookie-sharing\/","title":{"rendered":"xDomain Cookie Sharing"},"content":{"rendered":"\r\n<h2 class=\"wp-block-heading\">Feature Overview<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Cross-domain cookie sharing in WC Affiliate is a unique feature that tracks an affiliate&#8217;s referral cookie across two different websites and credits them correctly when the visitor buys on your main website.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">So if someone clicks an affiliate link on one domain and completes the purchase on another domain, the system still records the referral cookie and gives the affiliate proper credit.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\">\r\n<div class=\"wp-block-embed__wrapper\">\r\n<p><iframe loading=\"lazy\" title=\"XDomain Cookies in WC Affiliate  | WooCommerce Affiliate Plugin\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/fjRh4-sywvc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\r\n<\/div>\r\n<\/figure>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Why is it important?<\/h3>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Most affiliate plugins use first-party cookies (stored on your own domain) to remember which affiliate referred the visitor &#8211; usually for 30\u201390 days. These cookies normally cannot be read across completely different domains (e.g., blog.example.com \u2192 shop.yourbrand.com or completely separate sites like nicheblog.com \u2192 yourmainstore.com) due to browser security rules.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">WC Affiliate makes it possible to connect other sites with your current sites so that the cookie travels through unrestricted.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Configuration xDomain Cookie Sharing<\/h3>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">To make it work, you&#8217;ll need to &#8211;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">1. <strong>Access the control panel<\/strong>: Log in to your main WordPress website and navigate to the xDomain Cookie Sharing settings: <strong>WC Affiliate &#8211;&gt; Settings &#8211;&gt; xDomain Cookie<\/strong> tab.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"507\" height=\"504\" class=\"wp-image-34890\" style=\"width: 388px;height: auto\" src=\"https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/navigate-settings-xdomain.png\" alt=\"\" srcset=\"https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/navigate-settings-xdomain.png 507w, https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/navigate-settings-xdomain-300x298.png 300w, https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/navigate-settings-xdomain-150x150.png 150w, https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/navigate-settings-xdomain-100x100.png 100w\" sizes=\"auto, (max-width: 507px) 100vw, 507px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">2. <strong>Enable the feature and input the websites:<\/strong> On the xDomain cookie settings page-<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Enable the checkbox with a tick mark.<\/li>\r\n\r\n\r\n\r\n<li>Put the links of the WordPress site you want to connect to.<\/li>\r\n\r\n\r\n\r\n<li>Finally, save all the changes you made by clicking the &#8216;<strong>Save Settings<\/strong>&#8216; button.<\/li>\r\n<\/ul>\r\n<p>You can click <strong>Reset Settings<\/strong> to return everything to the original default configuration. All your current custom settings will be cleared.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"341\" class=\"wp-image-34892\" src=\"https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/xdomain-settings.png\" alt=\"\" srcset=\"https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/xdomain-settings.png 1000w, https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/xdomain-settings-300x102.png 300w, https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/xdomain-settings-768x262.png 768w, https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/xdomain-settings-600x205.png 600w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n<h2>How to Connect Subdomains<\/h2>\r\n<p>xDomain Cookie is a WC Affiliate Pro feature. Before you begin, make sure WC Affiliate Pro is installed and activated on your website. Then follow these steps:<\/p>\r\n<p>1. Go to WC Affiliate \u2192 Settings \u2192 xDomain Cookie. From this page, copy the Shared Secret Key and download the Connector Toolkit. Share both the toolkit and the secret key with your affiliate.<\/p>\r\n<p><a href=\"https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/xdomain-settings-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35093 size-full\" src=\"https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/xdomain-settings-1-e1782731645859.png\" alt=\"\" width=\"924\" height=\"456\" srcset=\"https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/xdomain-settings-1-e1782731645859.png 924w, https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/xdomain-settings-1-e1782731645859-300x148.png 300w, https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/xdomain-settings-1-e1782731645859-768x379.png 768w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/><\/a><\/p>\r\n<p>2. Now ask your affiliate to install and activate the Connector Toolkit on their WordPress site.<\/p>\r\n<p>3. After activation, the affiliate should go to: Settings \u2192 WC Affiliate Pro xDomain. Paste the Secret Key into the Shared Secret field, then click <strong>Save Changes<\/strong>.<\/p>\r\n<p><a href=\"https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/set-cookie-code.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35092 size-full\" src=\"https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/set-cookie-code-e1782731945902.png\" alt=\"\" width=\"1037\" height=\"852\" srcset=\"https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/set-cookie-code-e1782731945902.png 1037w, https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/set-cookie-code-e1782731945902-300x246.png 300w, https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/set-cookie-code-e1782731945902-1024x841.png 1024w, https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/set-cookie-code-e1782731945902-768x631.png 768w\" sizes=\"auto, (max-width: 1037px) 100vw, 1037px\" \/><\/a><\/p>\r\n<p>Once completed, the subdomain connection is established, and cross-domain affiliate tracking will work correctly.<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n","protected":false},"author":2,"featured_media":0,"template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"helpwp_product":[53],"helpwp_topic":[67],"class_list":["post-15092","helpwp_doc","type-helpwp_doc","status-publish","hentry","helpwp_topic-admin-dashboard"],"_links":{"self":[{"href":"https:\/\/wcaffiliate.com\/docs\/wp-json\/wp\/v2\/helpwp_doc\/15092","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wcaffiliate.com\/docs\/wp-json\/wp\/v2\/helpwp_doc"}],"about":[{"href":"https:\/\/wcaffiliate.com\/docs\/wp-json\/wp\/v2\/types\/helpwp_doc"}],"author":[{"embeddable":true,"href":"https:\/\/wcaffiliate.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"wp:attachment":[{"href":"https:\/\/wcaffiliate.com\/docs\/wp-json\/wp\/v2\/media?parent=15092"}],"wp:term":[{"taxonomy":"helpwp_product","embeddable":true,"href":"https:\/\/wcaffiliate.com\/docs\/wp-json\/wp\/v2\/helpwp_product?post=15092"},{"taxonomy":"helpwp_topic","embeddable":true,"href":"https:\/\/wcaffiliate.com\/docs\/wp-json\/wp\/v2\/helpwp_topic?post=15092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}