Using "Google Tag Manager" with "Google classic Sites" - google-sites

I'm trying to use Google Tag Manager for a site created using Google classic Sites, but I haven't had any luck so far. This question seems to have been up on a few forums, but I was not able to find any definitive answer to this end.
Help would be greatly appreciated!

You've probably seen this page - Configure Google Analytics for Google Sites, but I don't believe there is a way to add custom javascript to a google sites page, at least not yet. You might be better off buying your own domain and hosting it somewhere if you want access to GTM.

You can now use the 'embed' option in google sites to add arbitrary html/css/javascript to the site. I added the tracking code created by google tag manager and embedded it in the footer of my google site.
Directions from Google

Related

How do I integrate Dialogflow with new Google sites?

It looks like new Google sites does not support scripting. Is there any other way I can integrate Dialogflow with Google sites besides using embed code? I'd like a chat widget to pop up on the website.
Only Classic Sites (Previous version) supported Apps Script where you might have been able to add that.
New Sites, the closest thing that can be added to it are HTML and JavaScript as suggested by their official documentation.
Reference
https://support.google.com/sites/answer/90569?hl=en#zippy=%2Cadd-html-css-or-javascript-code-to-your-site

Google: How google search makes web site screenshot previews

Is there any ideas of how google search makes web site screenshot previews?
Sultan
No idea how google does it but with Awesomium it's pretty easy.

Hosting Google Apps UI in my app

I'm investigating the possibility of re-using Google Apps/Docs in a local hybrid desktop/browser application.
I've been going through the Google documentation on manipulating docs, eg. the Spreadsheet. I can't seem to find any info on actually hosting the UI. Is this possible, or does it require some form of permission from Google?
You want to basically embed an browser control in your application pointed at the URL of a Google Apps doc? You could use the Google Document List API to retrieve the documents for a user, then use the URLs of those documents in your embedded browser control.
You don't need Google's permission to do that; you're writing a browser with some extra smarts built in.
What do you mean by "hosting the UI?" These apps are HTML/CSS/JavaScript. Are you thinking about embedding them in AIR or Titanium, or in some kind of web control in another app?
i briefly looked into doing this, and figured if i really wanted to i could just load the gdocs page content dynamically, and use javascript to strip away the superflous elements like header and footer. but instead i'll probably just use an OS alternate because they have come a long way and I want rich hooks.

How to add google search results on your site?

Is there any way to add google search results into your site such that the results appear under your domain (and the page doesn't get redirected to google.com)? I know about google cse but this is not a free solution. Is paying for CSE the only way? Thanks.
Use the Google AJAX Search API (my emphasis):
The Google AJAX Search API lets you
put Google Search in your web pages
with JavaScript. You can embed a
simple, dynamic search box and display
search results in your own web pages
or use the results in innovative,
programmatic ways.
You just need JavaScript - nothing server-side.
You could use Google Search API.
You could also query Google search engine through a Web Service. Here's the WSDL and here's the FAQ. But I think this will be discontinued in favor of the first suggestion I gave.
I've never used this but if you're into python check out Python Library for Google Search from Peteris Krumins’ blog.
What about this? http://code.google.com/apis/ajaxsearch/web.html
And there should be even API for PHP etc.

Integrating with Google Docs

Has anyone integrated an "Open in Google Docs" in their web app yet? Gmail has this for opening attachments. How about any other sightings of this in a non-google web app?
Google Docs does have an API which allows you to search, upload, delete and retrieve documents from the Google Docs list of a specific user. You could conceivably use this to upload a document from your server and then retrieve the URL of that document (once it is imported), which you can then use to redirect the user. It wouldn't be quite as slick as Gmail's integration since you wouldn't be able to show that fancy "Importing your document..." page, but it might suffice.
As for other sightings, I am not aware of any.
If you only need this functionality for yourself you could download the "Send to google docs" firefox extension. That will add a right-click menu on all document links on the web and allow you to open them in google docs.
You have to give a look to the Google Documents List Data API
There is a gdata objective-c implementation for the api access.
http://code.google.com/p/gdata-objectivec-client/

Resources