I want to display 2 webpages in single aspx webpage is it possible ?
for example
user -- open link for www.mywebsite.com
In my homepage i want to display both www.google.com and www.bing.com.
In the background i call two different url's and they should display on my same aspx page.
To integrate websites in other websites use an iframe like this:
<iframe src="http://www.bing.com"></iframe>
More information: w3schools
Google
This will not work for google because of their therms and services:
1.3 Your Obligations. You shall receive a Query from the End User and shall forward that Query to Google. You maynot in any way frame, cache or modify the Results produced by Google, except as otherwise agreed to between You and Google.
So if you want to integrate Google search to your website, you can read more about the API here Google Api
Bing
To embend searchresults from bing take a look at the Bing api. 5000 queries per day are free.
Related
I would like to know how to embed page source code to my personal website.
I want to show how many YouTube subscribers, Linkedin Followers, Instagram Followers etc. I have on my personal website (I'm using Squarespace).
If you go on a YouTube page, right click 'View page source' then search for the subscribers. Is there a way of extracting this code so it updates automatically on my website every time I get new subscribers.
It would be great if I could keep them all is the same style like I have on my homepage (I have just manually typed the numbers in for now) under my showreel.
http://www.tierney.tv/
Thanks in advance,
Michael
There is no way to just "embed" code and just display specific information of an account unless someone has created it as a plugin in the type of website you are using. You would have to create API access and requests. Here is the way to Authorize Requests. https://developers.google.com/youtube/v3/code_samples/javascript
Here with your Channel ID you can get a snippet to get your subscriber numbers.
https://developers.google.com/youtube/v3/code_samples/code_snippets
These widgets should be made and supported by respective companies/sites. They can also be found there with respective links to embed the widgets.
Ex - youtube, facebook, google maps have embed codes provided to embed their videos, posts, maps.
My site is a Single Page Application and uses alot of javascript. I've got my server setup to generate the site the user sees with javascript so Google sees the same content. Google knows about this via the fragment meta tag and converts links with the shebang to escaped_fragment to get that rendered site. Since I want Google to know about not-so-recent articles on my site that don't have a link from the mainpage anymore, I added a sitemap.
The question is if I should add urls with or without the shebang or convert it to escaped_fragment.
http://www.example.com/#!veryAwsomeDynamicPage
or
http://www.example.com/?_escaped_fragment=veryAwsomeDynamicPage
My Goal: I want Google to get my content via escaped_fragment, but want the link that Google shows in its search result to be with the shebang (so that users don't get redirected)
as outlined in google's specification under 'Role of the Search Engine Crawler' it states
The search engine agrees to display in the search results the corresponding pretty URLs:
thus, http://www.example.com/#!veryAwsomeDynamicPage is displayed in the search results while google fetches the content on http://www.example.com/?_escaped_fragment=veryAwsomeDynamicPage
so http://www.example.com/#!veryAwsomeDynamicPage shall be in the sitemap.xml
I have implemented a website with the help of angularjs,jquery and ruby on rails as back end.
I have also used #! in the url of the website..
Now to make the website crawlable I have used escaped_fragment so as to allow google to crawl.
The website is live for about 15 days now and is quite stable..Now the problem I am having is that when I am using google Voice search and I say open abc.com website it is redirecting me to the escaped fragment url for eg:- www.abc.com?_escaped_fragment_=/Home whereas it should go to www.abc.com/#!/Home
If I try only open abc or abc.com it is giving me proper results and am redirected to the proper home page ie www.abc.com/#!/Home.All the other mobile search are giving me proper results(google search).
Why is this happening and what should I do to stop this.
Is this a bug with google
I was wondering how would i go about adding a simple tracking to a certain link on a site I am developing for a client
I am using google analytics for tracking the source of the incoming traffic and after the visitor has entered the site he supposed to click on a link, I an interested in knowing how many clicks I got from every source.
You're looking for "Campaigns". There's an extensive article about it here: http://support.google.com/analytics/bin/answer.py?hl=en&answer=1239239
You can use the "URL Builder" tool to create a URL for a specific link (on an external site, presumably) by giving a name to your campaign and other details. The parameters are utm_source, utm_medium, and utm_campaign in particular.
I'll mention that Analytics will already tell you (without any modification to the link) what referring page sent a visitor, so you can tell what page a visitor was viewing before arriving at your site. All this is found under "Traffic Sources" in the Analytics reporting interface. The utility of campaigns is if either (a) you'll be scattering links in ads on many different websites, and it's the ad rather than the page that you want to track, or (b) there may be multiple links to your site on the same page and you want to know which one the visitor clicked.
I have recently looked into this and discovered that using FBML pages in a facebook fan page, I can add fb:google-analytics tags or image tags to track page visits. However I have found no method of tracking visits to other facebook tab pages, like "pictures" or "wall".
Is there a way do this?
Thanks
There is no way of doing this with Google Analytics.
There used to be a hack that embedded a php file as an image, and that request tracked a pageview. However, a change to how Facebook renders pages makes this hack/plugin useless (it looks like it stopped working on September 7th). Basically, it looks like they're caching any external images onto their own servers, and thus breaking this hack. Short of there being an officially supported plugin, or Facebook allowing Google to track more, this is likely a dead end.
Edit: With Facebook tabs, you can install an iframe app as a tab (not using FBML), and you can put Google Analytics on the tab. But, since its an iframe, you don't have access to real referrer information, and Facebook spoofs its referrer, so there's no way for the iframe to detect anything about the page. But this is only for the tab, not for the wall or photos.
Another important thing to note is that the cookies are still being set on your domain, so it might make sense to keep the account on your main account, but use a special configuration on the tab.
Here's the best practice I've settled on for putting Google Analytics on a Facebook tab iframe:
First, the iframe URL should contain the URL parameter ?utm_nooverride=1. This is so if the user already has referral cookies (for example, if they got to your site before via Google, the pageview will persist with that referral source.)
Second, I override the referrer value (which is useless, since it is spoofed by Facebook) to be tab.facebook.com, to make it simple to differentiate from other traffic.
Finally, I place 2 custom variables: One page-level, and one visitor level. The former allows me to easily know what pageviews occurred from within the tab. The second allows me to track the rest of the interactions my site has with this person if they end up returning to my site. That code looks like this:
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-1']);
_gaq.push(['_setReferrerOverride', 'http://www.tab.facebook.com']);
_gaq.push(['_setCustomVar', 1, 'is_facebook_page', 'true', 3]);
_gaq.push(['_setCustomVar', 2, 'visited_facebook', 'true', 1]);
_gaq.push(['_trackPageview']);
Facebook does provide some limited analytics capabilities called Facebook Insights:
http://www.facebook.com/help/?faq=15221
Also outgoing links will be tagged with a tracking code so you can pick up which traffic is coming from your Facebook pages to your site.
However you cannot embed Google Analytics or Yahoo Analytics directly into the pages.