{"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-04-12T06:06:50","modified_gmt":"2026-04-12T06:06:50","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":"\n<h2 class=\"wp-block-heading\">Feature Overview<\/h2>\n\n\n\n<p>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>\n\n\n\n<p>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>\n\n\n\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\"><div class=\"wp-block-embed__wrapper\">\n<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>\n<\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Why is it important?<\/h3>\n\n\n\n<p>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>\n\n\n\n<p>WC Affiliate makes it possible to connect other sites with your current sites so that the cookie travels through unrestricted. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configuration xDomain Cookie Sharing<\/h3>\n\n\n\n<p>To make it work, you&#8217;ll need to &#8211;<\/p>\n\n\n\n<p>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>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"507\" height=\"504\" src=\"https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/navigate-settings-xdomain.png\" alt=\"\" class=\"wp-image-34890\" style=\"width:388px;height:auto\" 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>\n\n\n\n<p><\/p>\n\n\n\n<p>2. <strong>Enable the feature and input the websites:<\/strong> On the xDomain cookie settings page- <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enable the checkbox with a tick mark. <\/li>\n\n\n\n<li>Put the links of the WordPress site you want to connect to. <\/li>\n\n\n\n<li>Finally, save all the changes you made by clicking the &#8216;<strong>Save Settings<\/strong>&#8216; button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"341\" src=\"https:\/\/wcaffiliate.com\/docs\/wp-content\/uploads\/2021\/07\/xdomain-settings.png\" alt=\"\" class=\"wp-image-34892\" 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>\n\n\n\n<p>Click <strong>Reset Settings<\/strong> to return everything to the original default configuration. All your current custom settings will be cleared.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Note:<\/strong> To make this work, install the Connector Toolkit on the secondary domains where traffic first lands. This is a pro feature of WC Affiliate. Make sure you have WC Affiliate Pro Installed. And you\u2019ll find it included inside your <a href=\"https:\/\/my.pluggable.io\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dashboard WC Affiliate Pro<\/strong><\/a> package.<\/p>\n<\/blockquote>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>&nbsp;<\/p>\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}]}}