I need to keep the new member's origin. I use utm_source for every external source. How can I keep that record from the utm_source inside link when a user from a source e.g. utm_source=facebook, come to my site and sign up? I need to see the source for each members in my database.
Google Analytics stores visitor referral information in a cookie called __utmz
. After this cookie is set, its contents will be sent with every subsequent request to your domain from that user. So, when a user signs up, you can grab the contents of this cookie and save it to your database. Below are a few links that should help get you started.