Hi to all,
I'm starting a new Setup for Adobe Analytics and found a guide to setup the S.Campaign.
This guide explains how to create the S.Campaign on a landing with parameters cid (or other paramaters); what I don't understand is how to do if the user comes from Google (or another search engine) or from the referral traffic or from direct traffic.
Is there an official guide that explains how to populate the S.Campaign in these scenarios? I need to creare s.campaign using document.referrer?
Solved! Go to Solution.
You don't need to set s.campaign with non-campaign sources. So you don't need it for natural search, 3rd party referrers nor direct traffic.
You only need to set it with your campaigns, where you have an explicit campaign tracking code in your landing page URL.
E.g. www.website.com/landing-page?cmp=abc123. In this example, you will set s.campaign to the value of the "cmp" query.
You don't need to set s.campaign with non-campaign sources. So you don't need it for natural search, 3rd party referrers nor direct traffic.
You only need to set it with your campaigns, where you have an explicit campaign tracking code in your landing page URL.
E.g. www.website.com/landing-page?cmp=abc123. In this example, you will set s.campaign to the value of the "cmp" query.
thk for reply, and how Adobe recognize natural search? referral or direct?
Views
Replies
Total Likes
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);
you don't need the plugin nor do you need the "document.referrer" (which is not the actual URL). Assuming the campaign parameter is in the current URL, just create a data element "cmp parameter" by using "core" => "query string parameter" (enter desired parameter). then you are able to set the campaign parameter in the tracking call like this:
s.campaign = _satellite.getVar("cmp parameter");
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Like
Replies
Views
Like
Replies
Views
Likes
Replies