chrome extension authorization via iframe - iframe

My site can export and import backup via google drive. I use gapi for this.
Now I'm converting my site to a chrome extension and Gapi has stopped working.
Can I do Google authorization through the iframe that links to my main site, and then continue to work in the extension?

Related

Integrate Google Analytics with Static Firebase Hosting Website

i have made my website with wordpress and then used simply static plugin to generate static files which later on i host on firebase hosting. I want to add google analytics to my website so i have added analytics script in my website pages header using another wordpress plugin. The problem is that analytics does not get shown on google analytics site. Am i doing something wrong?

how long will facebook plugin work with http?

While running my Cordova app in Chrome using:
cordova run browser
I see the following message in the console:
The method FB.getLoginStatus will soon stop working when called from http pages. Please update your site to use https for Facebook Login. https://developers.facebook.com/blog/post/2018/06/08/enforce-https-facebook-login/
Is this a concern with this plugin?

Weird 404 errors recorded in Google Analytics; mentions doubleclick and DARTiframe

I started a website and everything's going very well. But on Analytics, I'm seeing a weird 404 URLs on the Behavior tab. I am using AdSense and nRelate to serve ads.
I am seeing these URL's in Google Analytics:
/404.html?page=/doubleclick/DARTIframe.html?gtVersion=200_41&mediaserver=http://s0.2mdn.net/879366&xpc={"cn":"peerIframe58527422","tp":null,"osh":null,"pru":"http://sdherald.com/doubleclick/DARTIframe.html?gtVersion=relay_200_41&mediaserver=http://s0.2mdn.net/879366","ppu":"http://googleads.g.doubleclick.net/robots.txt","lpu":"http://sdherald.com/robots.txt"}&from=http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-8282582681724773&format=300x250&output=html&h=250&slotname=3724546046&adk=672603818&w=300&lmt=1404675131&flash=0&url=http://sdherald.com/life-hacks-vinegar/?f=f&dt=1404653529944&bpp=1184&shv=r20140630&cbv=r20140417&saldr=aa&prev_fmts=320x50,300x250_as&correlator=1404653530086&frm=20&ga_vid=1386066698.1404653530&ga_sid=1404653530&ga_hid=481051372&ga_fc=1&ga_wpids=UA-52432983-1&u_tz=-360&u_his=1&u_java=0&u_h=480&u_w=320&u_ah=460&u_aw=320&u_cd=32&u_nplug=1&u_nmime=34&dff=open sans&dfs=14&adx=10&ady=2614&biw=320&bih=372&eid=317150304&oid=3&ref=https://m.facebook.com&rx=0&eae=0&fc=3&vis=1&abl=CS&ppjl=d&fu=256&ifi=3&xpc=uwbOj59GAe&p=http://sdherald.com&dtd=1212
/404.html?page=/doubleclick/DARTIframe.html?gtVersion=200_41&mediaserver=http://s0.2mdn.net/879366&xpc={"cn":"peerIframe58527753","tp":null,"osh":null,"pru":"http://sdherald.com/doubleclick/DARTIframe.html?gtVersion=relay_200_41&mediaserver=http://s0.2mdn.net/879366","ppu":"http://googleads.g.doubleclick.net/robots.txt","lpu":"http://sdherald.com/robots.txt"}&from=http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-8282582681724773&format=728x90&output=html&h=90&slotname=6318085641&adk=3863123026&w=728&lmt=1404672595&flash=0&url=http://sdherald.com/life-hacks-vinegar/?f=f&dt=1404654595455&bpp=24&shv=r20140630&cbv=r20140417&saldr=aa&correlator=1404654595852&frm=20&ga_vid=1756553763.1404654595&ga_sid=1404654595&ga_hid=1419792073&ga_fc=1&ga_wpids=UA-52432983-1&u_tz=-300&u_his=1&u_java=0&u_h=1024&u_w=768&u_ah=1024&u_aw=748&u_cd=32&u_nplug=1&u_nmime=34&dff=open sans&dfs=14&adx=148&ady=62&biw=1024&bih=704&eid=317150304&oid=3&ref=https://m.facebook.com&rx=0&eae=0&vis=1&abl=CS&ppjl=u&fu=256&ifi=1&xpc=GFXZzfrZT6&p=http://sdherald.com&dtd=424
I have no idea what these are and where they came from.. Does anyone have any idea how to fix this? Please help me.
The website URL is http://sdherald.com.
Thank you.
If you are getting 404 for DARTIframe.html, then you will probably want to get that file from Google and upload it to your server.
DoubleClick Rich Media iframe solution
To enable iframe access for DoubleClick Rich Media ads, a publisher
must put a special file on their domain that acts as a bridge between
the ad server domain and the publisher domain.
DoubleClick Rich Media requires that the publisher add the
DARTIframe.html file to a specific relative URL /doubleclick folder at
the root directory of the web service on their webservers. For
example, if your website is www.example.com, put the DARTIframe.html
file into www.example.com/doubleclick.

Can Google analytics be hosted on a different URL embedded in an Iframe

I have a website www.site.com that contains a iframe which embeds another site www.another.com which contains google analytics code. Now if a user navigated to my website at www.site.com will the google analytics code in the iframe for www.another.com track that user? If not is there a way to solve this?
Yes. There is extensive documentation about this over here.

Is it possible to display Google Analytics reporting interface in an IFRAME?

Has anyone had much luck in embedding the Google Analytics reporting interface in an IFRAME?
We'd like to add an "Analytics" tab to our CMS which displays the Google Analytics for each specific page. So, the user could view a page in the CMS, and see the analytics for that page right in the interface.
We have everything worked out, and we're bringing up the correct URL in the IFRAME. We get the Google login page, but when we log in, Google "busts" the IFRAME and loads the analytics page in the full window.
Is there anyway to keep Google Analytics reporting interface in an IFRAME?
Why not use the Google Analytics Data Export API to access the data and build your own reports?
It's not possible to IFRAME Google Analytics.
A work around to this is to build a chrome extension and append your codes/page into analytics site via content_scripts to put some "toolbar" on top or to do some modifications you want.
This is what I'm doing at the moment, sorry that I couldn't share the chrome extension code at the moment.

Resources