link customer information with google analytics

I would like to know if there is a way to link ids from our database with a certain field that can be tracked in google analytics? I am looking to link a applicant id from our website to something we can track with google analytics to help determine the value of certain keywords.

For example if applicant 1 clicks on a link lands on our webpage and then submits contact information. I would like to be able to link the id of the contact information with the keyword that the applicant clicked on. Is this possible to do with google anayltics?
Who is Participating?
pmagonyConnect With a Mentor Commented:
"I think this is impossible without building some sort of landing page that would take the information and then insert that data into a database."

The landing page can be any page on your site.  You don't have to create additional pages.  You could, with PHP "capture" the $_GET variable you pass in the URL.

Utilizing the original URL we talked about, my page could have a variable declaration at the top of the page that reads like this:

$keyword = $_GET['utm_term'];
$referrer = $_GET['utm_source'];
$medium = $_GET['utm_medium'];

Once the link comes in, those variables are just sitting there waiting to be populated by the variables being passed in the URL.  Once they have been assigned a value, you can then pass them from one page to the next, or INSERT them into your db.
Google analytics will tell you which link referred a visitor to your site which contains the link id..
You can see the statistics in your google analytics page..
Then you can click that particular link and see which keyword is used in that particular link..

You can get the HTTP_REFERER servervariable if your page and link to the contact information and update into the database...
You would need to build a GA url that contains a variable value for your ID.

First and foremost, you need to build and provide this link to the host website. If you don't have control of the link on the referring website, you can't track it with your specific ID.

Next, go here and learn how to build GA Url's:

Any link can contain parameters that are meaningful to you.  So let's assume that Site A is your referring site, and you are CNN.

The link above is sprinkled with parameters that tell me all about the referring source, the medium, and the type.  Of course, this can all be customized to suit your needs.  I hope this helps.. I'm on the run but wanted to get some information to you.  Post back if you have further questions after researching the above methods.

Good Luck
robansteeAuthor Commented:
Thanks for the solutions. I have set this up and I am testing this with current links. What I want to do is be able to link the data with my web database so I can see specific names of applicants and what keywords caused them to come to our site. I think this is impossible without building some sort of landing page that would take the information and then insert that data into a database.
robansteeAuthor Commented:
Thanks that is a simple solution but I think it will work best for us in this case. Thanks for all your help, this is exactly what I needed.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.