P
P
Pianista2016-12-03 15:34:09
Ruby on Rails
Pianista, 2016-12-03 15:34:09

How to make a display in the metric of the domain from which the redirect?

For example, I have posted a link on Facebook. When you click on it, there is a redirect through domain B to domain A.
In the i.metric, I see a transition from Facebook, or just a direct call.
How to set up a redirect so that domain B is displayed in the metric instead of Facebook or another site that hosts this link? Is it even possible?
Using Ruby on Rails
Made a header

response.headers['referer'] = "https://myapp.herokuapp.com"

when checking http headers it gives out
Referer: https://myapp.herokuapp.com
But it is still not displayed in the metric...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Wirtz, 2017-03-08
@Infleo

Try passing the intermediate site ($URL_referer) in the UTM tag. For example mysite.ru/?utm_source=$URL_referer. The metric eats them well and then allows you to filter, sort, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question