Metrics for Evaluating Traffic Sources

Theory

There are many kinds of traffic sources:

The reason for introducing performance metrics for a traffic source is to evaluate and compare traffic sources to identify which of them is best. Knowing how traffic sources perform helps to quickly manage your marketing strategy.

There are two methods for calculating website conversion. The first involves calculating the percentage of website visitors who perform target actions. The second calculates the percentage of target actions.

A visit is a sequence of actions a visitor takes, starting when they get to a website and ending when they’ve been inactive for 30 minutes.

Another important metric for evaluating a traffic source is the repeat purchase rate. This metric calculates the ratio of users who make at least two purchases to the number of users who make at least one purchase.

Practice

In pandas, you can perform arithmetic operations on columns: addition, subtraction, multiplication, and division. For example:

data['column1'] = data['column12'] + data['column3']

User IDs and cookies

Theory

A counter collects data about user behavior on web pages and sends it to a web analytics system, such as Yandex.Metrics. This counter is several lines of the website’s code. The counter collects general information about users: which traffic source they come from, which pages users view, and purchases they make. Counters assign a unique number to each user that differentiates them from other users. This is called a user ID.

Data from these counters is called raw data. Web analytics systems convert this raw data into reports on audience, traffic, and sources. Reports allow you to combine different metrics and visualize results.

Cookies are used to identify a user who returns to a website. Cookies are text files left in your device’s memory after your first visit to a website and sent to the server when you visit again.