when you do a google on "site:yoursite.com" it will display the items/pages that are under that site. on the top of the search result, there is an item that says "About 999 results (0.49 seconds)". How do I get that piece of information from either Google Analytics or Webmaster tools. Im using PHP as my lang.
I have over a hundred sites that I wanted to track. And using the old (http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=site:yoursite.com) doesn't work because google imposed a query limit. So im thinking that maybe I can get these info from GA and/or WMT.
Any help would be very much appreciated.
You can see amount of indexed pages in Webmaster Tools under Google Index -> Index Status.
However, I think the exact number might be slightly different from site:yoursite.com.
Let me know if that helps.
Related
As you know,google is blocked in China. Now I want to put a php search function in my website for user to search by a keyword and get result from my website and more important, from both two search engines, google and Baidu. I have already get done with baidu. But I can get done with google.
Here I have an idea: since my hosting is in mainland China, I can get another vps(like hostus) in USA, when some one search in my webisite, I can let program send a command to this second vps and let it do the specified research using google and send right back the result to my local vps.
is it possible? I know google has a way to identify robots. do you have any great idea to solve this? I want my user search a keyword and get result page on my website showing a website search, a baidu search and a dreaming gooogle search.
Thank you!
I use Google Analytics to get visitors statistics on my webiste (PHP) and I see that a lot of traffic comes from sites like share-buttons.xyz, traffic2cash.xyz and top1-seo-service.com. I think this is because I use SEO-firendy URL:s (for looks in the addess bar).
This is not really a problem for the site itself, but when I look at the statistics in Google Analytics it includes these robots and non-users and the numbers are therefore not true.
Is there a way to block these robots or do I have to subtract the robots visits from the statistics manually every time I want a report?
If you see this happening you can prospectively exclude them from all future reports in GA by using a filter on that view (admin - filters, create filter, then apply to specific view)
If you specifically want to do it proactively using PHP then you could use some regex to match undesirable referrers in request headers and return nothing.
The answer to the main question is yes, but it requires to be be persistent and it is basically an ongoing task that you will need to perform. Yes, I know is a pain.
Just to let you know this has nothing todo with PHP or your friendly URL, your website is being a victim of what is known as ghost referrals. Google has not publicly said anything on the topic but just recently I found this article reporting that Google has finally found a solution here.
However, I choose to be sceptical about this. In the mean time this is what you need to do:
Make sure to leave a view untouched without any filters (Read the fourth paragrah)
In Google Analytics > admin > view > View Settings> Check "Exclude all hits from known bots and spiders" like this.
In the same view block spam bots: a) Check the list of ghost referrals in YOUR REPORT following this method and b) Create a filter like this.
I recommend you to read this article in full that contains lots of details and more information.
Some people like to create filters with Regex listening all the spammy bots, if you want to check a up to date list visit this repository.
does anyone here knows where can i find a script that can show me which position is my site in some keyword?
I'm looking for a script that can search in all 100 pages Google have for every keywords.
thanks a lot in advance.
This script will automatically track your websites’ Google positions for any given keywords on any Google (.co.uk, .com, .nl, .it etc). It will periodically update the rankings once a day and these can be easily displayed anywhere on your website.
Link here!
If you want to monitor your site use Google Web master tools
Google Webmaster Tools provides you with detailed reports about your pages' visibility on Google
I am going around in circles a bit with this one trying to find a solution online and I cant find one so I thought I would ask then it may be useful to others as well.
The scenario.
With PHP I am looking to talk back to the Google Adwords API. OK not a biggy. However I want to tie it in with our own back office system to marry up data from sales/conversions to impressions/clicks/costs of each campaign/adgroup in Google Adwords.
This would involve tagging the destination URLs I initially thought with the dynamic tag from Google of {creative} for example http://www.mydomain.com/productone/?adid={creative} however this appears to be a number which is not unique across the account but unique only under Adgroup. So AdgroupOne and AdgroupTwo could both have an adid of 1,2,3,4,5 etc.. Therefore you cannot use this id to pull the data.
Has anyone else encountered this? Is there a way of getting around it to get a unique indentifier which can be stored in the backoffice with each visit to trace back to Google Adwords via their API?
Really appreciate the help with this one as its got me stumped. Thanks guys.
The easiest way to fix this would be to provide your own ids in the url. Also maintain a map at your end, of the form (adgroupid, adId, your_tag_id). This way you can lookup the map to figure out what Ad was clicked when a url is hit.
Some id rules to keep in mind:
campaignId: Unique across system.
adGroupId: Unique across system.
adId: Unique within an adGroupId, so (adGroupId, adId) is unique across the system.
keywordId: Unique within an adGroupId, so (adGroupId, keywordId) is unique across the system.
Cheers,
Anash
I am creating a custom reporting website, where I want to show live data from google analytics and accordingly the data in my website will change. I want it to be automated and dynamic, like whenever the data changes in GA, i want it to be automatically changed in our website, which will be shown to our clients to show the performance of our websites.
I am guessing this can be achieved by some api calling from php, xml returned values and showing those data on our website along with images.
i would appreciate if anyone could give me more info on how to start working on this.
Google Analytics has an official API. They don't seem to have ready-made PHP examples, but the XML sources should be easy to query. Not sure how "live" GA's data is, though - it could be that it is not possible to do stuff live tracking of visitors.