The source of a visit is unique and cannot be modified.
Organic sources are only defined on "page.display" events, while marketing sources can be defined on any type of event, and require feeding src_medium and src_campaign at least.
Organic sources
Organic sources are defined according to the domain of the URL preceding the arrival on your site. We thus define the source of visits according to whether or not a domain is available in our internal lists, specific to each type of source.
For example, the "facebook.com" domain is associated with the social networks list, so visits coming from this domain or one of its sub-domains will be assigned the "Social media" source.
Referrer sites
All sites whose domain is not present in any of our lists, which are then simply considered as referrer sites.
Portal sites
Sites whose URL is one of those you have entered for other sites belonging to your organization.
Social media
Social networks listed as such on our side (facebook.com, instagram.com, ...).
Search engine
Search engines listed as such on our side (google.com, bing.com, ...).
Webmails
Domains associated with mailboxes visited from a browser (mail.google.com, mail.yahoo.com, ...).
Direct traffic
All cases where no previous URL could be collected.
There are various reasons why no previous URL is available:
- The visitor clicks on a bookmark that redirects to your site.
- The visitor types your site's URL directly into the search bar.
- The visitor clicks on a link that redirects to your site, but opens in a new tab.
- The visitor clicks on a link within an email, but from a desktop application such as Outlook, resulting in the opening of their browser or a new tab.
- The visitor stopped browsing your site for more than 30 minutes (the default inactivity time for a visit) without closing his tab, then resumed browsing. In this case, we're talking about direct traffic as "continuation of visit", since the URL preceding the first page load has the same domain.
Marketing sources
To define a marketing sources, it is mandatory to feed the src_medium ("Campaign - Type" and "Source") and src_campaign (Campaign - Name) properties. Also, a marketing source must be defined at the latest on the first "page.display" event, but can be set on any of the preceding events.
By default, our SDK will automatically detect any URL parameter prefixed with "at_" and transform it into an event parameter of the same name, prefixed with "src_", such as :
- at_medium = src_medium
- at_campaign = src_campaign
- at_myproperty = src_myproperty
Force the marketing source of a visit
Our SDK will automatically retrieve the information contained in the URL's Query String if the visitor did not continue browsing before accepting your cookie banner, so all you have to do is to add the "src_force" parameter within the event. If, however, the visitor can navigate before making a choice on your CMP, you'll need to make your Query String persistent or to store the campaign information and push it into the event that will force the marketing source.