Use the plugin here: getQueryParam | Adobe Analytics You would need to install the plugin in your Analytics setup. You can then set campaign from query param in document.referrer by using this code:s.campaign=s.getQueryParam('cid','',document.referrer);