s.campaign showing null values
I have s.campagin implemented in Adobe Launch extension code for Adobe Analytics for s.campaign . When there are utm values , s.campaign populates fine, but when there are no values it shows in s.campaign it shows null values
e.g. s.campaign: null|null|null|null
How do I remove the null not showing in the debugger and in reporting?
if (!s.campaign) {
s._utm_campaign = s.getQueryParam('utm_campaign');
s._utm_source = s.getQueryParam('utm_source');
s._utm_medium = s.getQueryParam('utm_medium');
s._utm_term = s.getQueryParam('utm_term');
s._utm_content = s.getQueryParam('utm_content');
s.campaign = s._utm_source + "|" + s._utm_medium + "|" + s._utm_campaign + "|" + s._utm_term + "|" + s._utm_content;
if (s.campaign === "||||") { s.campaign = "" }
}




