Cannot embed Google Drive Files in an iframe - iframe

I recently had a problem with the Google Drive API displaying my documents. We have developed a web application that is connecting to Google Drive accounts to retrieve a user's drive files, then display in an iframe the file using its embedUrl/alternateUrl.
This has worked fine for us in the past, but suddenly files other than Google Documents stopped displaying: html files, text files, doc files... even images!
The error I get is Refused to display 'https://docs.google.com/file/d/0B_JkNS6Wu4b5R2c0YlJSN0oyQUE/edit?usp=drivesdk' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
I understand the error, it means that Google is preventing the display of documents outside of the Google domain, but the question is "why suddenly now", and how to circumvent it.
If someone stumbled upon the same issue and have found a solution, I'd be glad to hear.
Thank you kindly.

https://docs.google.com/file/d/0B_JkNS6Wu4b5R2c0YlJSN0oyQUE/preview?usp=drivesdk
Use preview instead of edit in the URL. It will work.

I had the same issue and found the following workaround showing the google drive files as webpage ressources
https://support.google.com/drive/answer/2881970?hl=en
This means you have to extract the [doc id] from your url and change your link to:
http://www.googledrive.com/host/[doc id]
Please note: in this case the google drive controls are not shown.

Related

Auto spy-ads load on our website page load

Today, our google ads rejected due to macilious software issue. we have investgated this problem in details.
we have checked the follow at our end:
we have check thorughly all website code
we have already scan our website using "malware scanner"
we have checked the website maleware scanner for virus total.
we have checked our database
the time-stamp of all pages are not change in recent time
BUT!
occasionally a pop-up appears at the bottom of the webpage. the screenshot is attached to this message.
https://exactautoglass.ca/[![enter image description here](https://i.stack.imgur.com/86TgZ.png)](https://i.stack.imgur.com/86TgZ.png)
i have tried eveything to run my google ads but it always rejected due to the "Malicious Software". I am looking for the solution!!
Any help would be appreciated. thanks
Well, if the popup is appearing on your webpage, then you didn't find the malicious code someone has placed (if it was even there, as I looked at your page and didn't find anything).
Remember that malicious code can also be placed in the header of your html file (If attacker got access to your server).
It can also be the result of an XSS vulnerability, which is a more likely behavior.
I couldn't replicate the bug on your website, so I can't give further info. I can only relay on your images.

my site is not showing in google search why?

I've read the questions and searched. My URL is: http://website.com
I recently created a website for one of our client, and added content and images are setup. I've verified the site with google webmasters, added analytics to the site.
The issue that I am experiencing is that I am searching for the keyword "" and our domain "http://website.com" is not showing up at all. Even if I type as "site:website.com" the domain doesn't show up.
I would appreciate if some one could assist me, if am doing anything wrong?
GOT IT:
Thanks for all who tried to assist me...
Google does not add your site immediately to their search index. Even if Google already crawled your site it can take more than a day until it is added to the public available search index.
Try it again in 24-48hours and contact google if it still does not show up.

Unable to upload document to begin translations

Have to get some localization done and hoping to use Google's translate toolkit to make .po files.
Despite setup billing, translate api, tried different browsers, accounts, new account... any time I click the upload button, I'm redirected (new tab) to the following url which reports a 404:
http://translate.google.com/toolkit/docupload?hl=en
I don't mind setting up by hand if upload doesn't work, but seems first step is upload.
Thanks!
Same for me with hl=fr.
The issue is also on the google forum
http://productforums.google.com/forum/#!searchin/translator-toolkit-api/404/translator-toolkit-api/pB-EJM1EUAo/4BQIdkrsmPMJ
with no answer !
Strange to get 404 error from Google !
Turns out I had to configure translate API, I'm now able to upload.

In-Page Analytics not working

When trying to look at In-Page Analytic in firefox I get this message:
"Problem loading In-Page Analytics
We've identified problems in your setup. These may cause problems loading In-Page Analytics.
Your site doesn't load ga.js from Google. If you host the Google tracking code on your own servers, it isn't updated automatically and can miss important changes.
We didn't find a tracking snippet on your site. In-Page Analytics cannot load. Please make sure you have tracking installed correctly. If your snippet is included in a separate JavaScript file, you'll have to manually check it is being loaded correctly."
When trying to view In-Page Analytic in Chrome I get:
"Access denied. Please try relaunching In-Page Analytics from the report.[Error: 20006]"
I don't understand why this is not working because when I look at other reports in Google Analytic like page views everything seems to be working fine...
Any help would be much appreciated.
Alex
Recent web browser updates block http scripts from loading in a https session by default. In the URL bar click the shield icon and Load unsafe script to show in page analytics.
Credit
I had the same problem in Chrome and this worked for me like a charm:
After you try loading the report, look at the Chrome browser’s Address
bar. At the right side of the bar, a shield icon is displayed. Click
on the shield icon. Then you’re notified that the site contains an
unsafe script, and you’re given the option to run the script. Once
you grant permission to run the script, the report appears as it’s
supposed to
Clear your browsing data and try again. (Ctrl - Shift - Delete)
You should also verify your View settings are correct - please have a look at this GA troubleshooting document:
https://support.google.com/analytics/answer/2559761?hl=en
I had the same issue as user1697748 & Alex Lockwood. I change the property settings to
Start In-Page Analytics in "Full View Mode" instead of embedded mode.
This you can find in Admin --> Property Settings.
Now I the In page analytics opens in new window but get this error.
Access denied. Please try relaunching In-Page Analytics from the report.[Error: 20006]
I am getting the other data from analytic but having issues with in page analytics.
So I did following to fix it.
Make sure the url is same in all your properties. I had at one place http://www.studyn.us and at all other places it was http://studyn.us. Google also recommends to keep it same
https://support.google.com/analytics/answer/2559761?hl=en
Delete all cookies. Close windows and re open it.
Worked for me.
It has been more than 2 years since In-Page Analytics report started to have problems with loading the data in Google Analytics interface. There are a few things you can try:
You can disable the security in your browser (not recommended).
You can download a plugin for Chrome to view some of the Google Analytics data directly in your browser (you wouldn't be able to apply any segments or filter the data by using the plugin).
You can recreate the report using Google Analytics data (the best solution) in Excel or Tableau. It isn't very hard to do, and once you are done, the problem is gone forever.
Here is a detailed step-by-step description of how to recreate In-Page Analytics report.
Example
Google anaytics inpage analytics feature has been disabled and will be removed soon. To overcome the loading errors a new page analytics chrome extension has been developed which is more easier to use and analyze page.
Follow the step by step guide to using inpage analytics chrome extension.
seems to be a widespread problem with this whole inpage analytics thing.
I had/ have several problems my self and there is not only one step towards the solution because there is more than just one problem. So I will write here some of the steps and solutions I made so far which worked:
1. Problem: Access denied. Please try relaunching In-Page Analytics from the report.[Error: 20006] = Solution = If updated to universal analytics you get a code snippet, which is not complete: you get this from analytics
ga('create', 'UA-1200274-1', 'sgo.ch');
ga('send', 'pageview');
but you have to put in an extra line between those two lines
ga('require', 'linkid', 'linkid.js');, plus you have to go under admin ->Property settings-> and switch on Use enhanced link attribution, DONT use full side mode!
Now when you try inpage analytics again it depends on the browser you are using: In IE, it appears an allert, you have to click on "view whole content" (sorry I have it in german, it might be in english saying something else, like loading page, or show whole page or so..), In google Chrome you have to look in the url bar, there is kind of a shield and you have to click on it and say load unsecure script.
Well that is the way how to solve the two error messages with Access denied. Please try relaunching In-Page Analytics from the report.[Error: 20006] and "Problem loading In-Page Analytics We've identified problems in your setup. These may cause problems loading In-Page Analytics..."
Now at least you can anaylse the main page (eg www.example.com), but in my case when i click further, then it doesnt stop loading for ever or it just appears that error again Access denied. Please try relaunching In-Page Analytics from the report.[Error: 20006],
I was really analyzing and testing and breaking my head, until I found out, that when I copy the Url, at the end of the url, my webpages adress repeats again. like this https://www.google.com/analytics/web/?hl=de&pli=1....%2Fwww.example.com/. so i just deleted the last part from the www... out of the Url and pressed enter and then all the datas appeared... Its a little annoying because you have to delete the www out of ech url you are anaylzing manually, but at least you can use the inpage analytics. Sorry for my very bad English skills, but I hope at least some one understood it:)
Please dont stop posting more solutions and ideas:)
regards MA

APIs to get most downloaded Files details from Google Analytics

We need to track the count of File Downloaded through Google Analytics.
We found that, through below code we can track the file download :
Download my file
This works fine.
But, in our website we want to show most downloaded(top 5) files in a specific section.
So, can anyone suggest that is such API available in Google Analytics to retrive top N number of downloads? Or should we go with the Custom tracking implementation to achieve this feature?
Thanks in advance,
Ashish Shukla

Resources