There is s similar question for this (Does external linking with internal link and redirect benefit the target website?) , but it is not extracly similar to this question and it did not give a answer for my question.
There are lots of external links in my website/blog. Now I need to analyze who clicks those links, how many times those links are clicked, etc.
Assume that my website is example.com.
I will make all external links as something like below example.
example.com/go.php?external_link=https://stackoverflow.com
example.com/go.php?external_link=https://stackoverflow.com/questions/7231157/
When user click a link I save all necessary data to database I will redirect user to real external page with 301 or 302.
Question 01: Should I use 301 or 302 for that redirection?
Question 02: Whatever redirection I use, is there bad affect for my site SEO wise?
Question 03: Is there bad affect for my site SEO wise, what is the solution for me?