I'm trying to extract the keywords from Google search engine through document.referrer
. The full referrer URL becomes like this:
"https://www.google.com.pk/?gws_rd=cr&ei=LXxHVIb_JNC07Qae7oCwAg#q=stack+overflow"
The document.referrer
property only gives me this:
"https://www.google.com.pk/?gws_rd=cr&ei=LXxHVIb_JNC07Qae7oCwAg"
Leaving out #q=stack+overflow
, but I also want that part after the hash.
Any idea on how I can grab the full URL?