• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 978
  • Last Modified:

Can you interegate a Google Adwords Tracking Cookie to determine the keyword used

When a googler types in a keyword then clicks on my advert, if they then use my website to send me an email using a form with a FormMail PHP script behind it, can I add code into the PHP script to get the keyword from the tracking cookie so that I know what they used to search for my site.

I currently use analytics and conversion tracking but , for example, it only tells me that I had 10 conversions (emails) using four of keyword 1, two of keyword 2, three of keyword 3 and one of keyword 4.  It doesn't show me wich email was for which keyword.

0
maidments
Asked:
maidments
  • 4
  • 3
1 Solution
 
gwkgCommented:
you can use to {keyword} tag to generate dynamic urls in your links
 
http://mysite.com/what-im-selling/?keyword={keyword}
0
 
maidmentsAuthor Commented:
Thanks but I'm not sure how that will help.  Your link doesn't work but I assume you are talking about dynamically changing the URL of my advert text based on the keyword they type.  How is that going to help me with getting the keyword they typed into my form submission email from the website they are directed to?
0
 
gwkgCommented:
Its actually more limited that that.  It only shows the keyword from your Adwords account, not the visitors actual query.
How it would help is that you would grab the keyword out of the url they visit with PHP ie $_GET['keyword']
This might explain it better: http://www.mssem.com/library/google_dynamic_keywords.html
One way it can be helpful: http://hubpages.com/hub/Adwords-Remote-Conversion-Tracking
All the tags
{keyword}  This pulls in the actual keyword from your AdWords account, NOT the search query.
{creative}  This pulls in the ad ID.
{ifsearch:Search}  This tells you if your visitor came via Search ads.
{ifcontent:Content}  This tells you if your visitor came via Content ads.
{placement}  This tells you the website your placement targeted ad was shown on.
Example URL: www.yoursite.com?source=google&medium=cpc&keyword={keyword}&type={ifsearch:Search}{ifcontent:Content}&site={placement}
 
 I don't think there is a way to get the visitors actual search query.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
gwkgCommented:
Maybe I misunderstood your question and your not using Adwords?
They search in Google for a keyword phrase and then click what?  You said advert and the only adverts on Google are through Adwords.
0
 
maidmentsAuthor Commented:
Thanks again gwkg. I am using Adwords.  I think I understand this now.  If I understand correctly, I need to use the dynamic URL facility when creating my adgroups/adwords and then when my advert is clicked, the URL of my website becomes www.widgets.com/q=some%20widgets and then I can use some PHP code in my website to take the "Some Widgets" out of my URL and I can then use that to put into my email when it gets sent by the user.

If thats right then Its certainly an idea.  I will mean me re-writing all my adverts and I have never been a fan of exact keywords in my advert text unless it looks right.  You sometimes see,for example "We have really cheap TOE OPERATIONS. Visit us for great value" when i type in "toe operations" and whilst I am sure they are cheap, it would not hold me in great confidence and would probarly not click them.  Also, If the user went to my landing page, could I grab the keyword during their visit and hold onto it as they may browse the rest of the site before they clicked on a differnet page and filled out a different form asking their question.  It is an idea though and it is a possibility.
0
 
gwkgCommented:
You dont have to use the keywords throughout your ad like that, you only need to put it in the url if you wish, like in the example url
www.yoursite.com?source=google&medium=cpc&keyword={keyword}&type={ifsearch:Search}{ifcontent:Content}&site={placement}
The display URL can still be www.yoursite.com, they'll only see the long url with their keyword in the url if they mouseover and look at the bottom browser bar.
 
0
 
maidmentsAuthor Commented:
Many thanks.  I'm looking into this now.
0

Featured Post

[Video] Create a Disruption-Free Workspace

Open offices have their challenges. And Sometimes, it's even hard to work at work. It's time to reclaim your office and create a disruption-free workspace. With the MB 660, you can:

-Increase Concentration
-Improve well-being
-Boost Productivity

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now