How To Remove Query Parameters From Landing Page Data Element in Adobe Launch
So, Adobe Launch already has a Data Element type called Landing Page and it’s meant to capture the first page of the visit, the Landing Page.
If you have a campaign page that is receiving traffic from 3 different campaign sources using UTM’s or cid parameter, you would be having three different landing pages in the data table , even though it’s the same.
Example:
foo.com/campaign-page?utmsource=source1&utm_medium=medium1&utm_campaign=campaign
foo.com/campaign-page?utmsource=source2&utm_medium=medium2&utm_campaign=campaign
foo.com/campaign-page?utmsource=source3&utm_medium=medium3&utm_campaign=campaign
Your landing page var data element would capture the whole URL in the var.
If you want to strip out the query parameters, create a Custom JS data element where:
var x=_satellite.getVar('Landing Page');
return (x.split("?")[0]);
_satellite.getVar retrieves the original Landing Page data element
while split function strips everything starting from the ?
Solution by Alexis Cazes, based on the same question I posted in Adobe Launch forum: https://forums.adobe.com/thread/2638881