问题原文
原帖链接 · Fredi · CC BY-SA 4.0
I have an external bio link on my Instagram business page, i want to detect "which" Instagram users click on link and visited my website.
Is this possible by analyzing referral link or other ways? , and is this even legal?
已采纳解答
原帖链接 · Grant Miller · CC BY-SA 3.0
No.
You cannot detect which users clicked on your Instagram external link.
An external Instagram link looks something like this:
https://l.instagram.com/?u=https://www.example.com/&e=ATPww3V7arueU2tZJxZn2sop0is5m0U3NkJrH05Fz0nud9ENOn38ULgxXDwDvUMwCGDzDqaNXEHn7uzk
Breaking it down, we can see that there are two GET variables in the query string of the URL:
https://l.instagram.com/
? u = https://www.example.com/
& e = ATPww3V7arueU2tZJxZn2sop0is5m0U3NkJrH05Fz0nud9ENOn38ULgxXDwDvUMwCGDzDqaNXEHn7uzk
Instagram refers to this link as external_url_linkshimmed in the JSON data that can be found stored in window._sharedData (web browser).
- The
uparameter most likely stands forURLand simply stores the external URL that was added to your profile. - The
eparameter most likely stands forexternaloreventand stores tracking data that Instagram uses for analytics. This value always appears to be 80 characters, and it changes every time someone visits the profile. This value is probably the result of a hash function.
None of this data will allow a user to track who clicked the link, so you cannot use document.referrer (client-side) or $_SERVER['HTTP_REFERER'] (server-side) to determine the identity of another user.
If this was possible (which it is not) it would be a major privacy shortcoming of Instagram.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
