You rock at marketing, new contacts are flocking to your site.

But do you know where they are coming from? For sure, you can create a segment is Friendly to who came through Facebook for example:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/0660fdcc-3f2d-47d2-a60d-fab10c4323db/Untitled.png

This filter will go through the URL visits and check for matches.

URL visits are saved like this:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6c8bb65d-2b31-4d31-b67b-3facd6afe7d3/Untitled.png

As you can see, you can filter for referring page, but the problem is, this might be various. What if someone comes through a blog post on your site, decides to follow you on facebook, and clicks one of your links there as well. You would think this person originally came from facebook, but it is not true.

Let's save the origin!

In order to do that, we need to set up a new custom field called Origin.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2813c86d-4208-49b2-b810-3eebff0cfbda/Untitled.png

Now create a segment for Facebook and Google as follows:

  1. Google will save a gclid parameter in your URL, you can filter for that.
  2. Facebook will save a fbclid in your parameter, and it is possible to filter for that as well, when yoou create your segment.

Now create a segment, that filters out this value:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/530a7db6-8e59-4347-a3ef-f3d40b32ca23/Untitled.png

Or in case of Google:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d49d692c-aff7-404c-99d6-0968a5c0e812/Untitled.png

You also have to make sure, that the origin field is empty for this segment, as we intend to fill it out with a campaign and we don't want to overwrite old data:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4fafc0ea-8bad-4bc1-b78c-f53f675c7fbc/Untitled.png

I named these segments as follows: