Skip to main content

Traffic source

This condition lets you target visitors landing on the website through some specific traffic source. You can for example target visitors that clicked on button in your newsletter (as long as this sets utm tags). You can also for example easily target marketing campaigns or lets say visitors coming in to the website from an Facebook ad. This condition is mostly used in Audience but could be combined with another condition in a Goal.

The Traffic source condition is set up by first choosing the match type and then enter the value for your source.

Example

Traffic source example In the example above the add to cart will only register conversions for visitors who visit the website from an email summer campaign. Read more about match types.

How Lyftio handles Traffic source

The Lyftio script uses the same approach to traffic source as Google Analytics. UTM tags in the URL have priority. After that the script checks document.referrer when the visitor comes in to the website and keeps that the whole session.

The prioritization order

  • Landing via UTM
    Traffic source = utmSource

  • Landing via external (no UTM)
    Traffic source = external domain

  • Landing vithout traffic source
    Traffic source = (direct)

  • Internal navigation SPA
    Traffic source stays as last external (or keeps internal)

  • Reload after 30 min session timeout
    GA4-like: only update if external; internal ignored

  • Reload after 24h
    Always reset traffic source (new external or (direct) if empty)

tip

Always test your Goals in Preview before activating the experiment to make sure that your goals triggers as expected.