Office-add in online sideload - javascript

We followed the steps mentioned in "Sideload an Office Add-in on Office online" to work custom function for desktop or online users but still custom functions not appearing for both. Manifest file able to upload without any error but function not displaying.

do you get a browser error? i.e. through the console? How are you hosting?
One common issue: you're using a self-signed certificate which is generated by the Office Yeoman generator, you'll need to trust the certifcate. Depending on your custom function project, if it doesn't show a taskpane, you can just navigate to the endpoint, i.e. https://localhost:3000/ and manually trust it. Then sideload the manifest again.

Related

using google APIs within a chrome extension

I'm working on a project to make a chrome extension and the idea is to take notes and write to a Google Doc. So far, for getting started I've created a API key and am using a Client ID (web app option) to work locally using the template from Google's JavaScript quickstart HTML, see source:
https://developers.google.com/docs/api/quickstart/js#python-2.x
I've since been messing around and made some functions and a popup.html that would be used for the extension popup. Now, I'd like to test this within the extension / browser environment and herein lies the issue. I would think you can get access to these APIs within the extension and still test and develop without publishing to the chrome store.
It seems I need a key in the manifest along with an oauth2, client_id, and scope. The latter I have, but I don't get how I can get a key for this? From the developer documentation, it mentions that you can pack your extension and this gave me private key, is that the same thing? I should note too, that the process listed in the documentation doesn't work for me as in my local files the extension isn't in my system.
Moreover, I suspect I need to get the scripts to handle logins and authorize as well, but one step at a time here.

ReactJS Firebase Hosting and Google Search Console

I've just deployed an "alpha" version of my ReactJS SPA using Firebase Hosting, and I've been trying to figure out a way to test SEO using Google Search Console. When I enter the url and click continue, it gives me the TXT record that I'm supposed to "copy into the DNS configuration" for my url. The "url prefix" wants me to upload an html file for verification, but I don't think this is even possible with a single page ReactJS app. I've done quite a bit of searching online, but haven't found a definitive solution. Could somebody please explain the proper way to do this? Thank you.
I know there are different ways to connect your website files to google search console for verification. For me I opted for the older method that didn't need DNS configuration. All you had to do was copy in a meta tag you'll be given

Error when using G-Suite Developer console with Google Sites embedded API

I've written some code that retrieves some data from google sheets then updates some content on my google sites. However, while the script works (when run on localhost) I encounter the
"details": "Not a valid origin for the client: https://966655698-atari-embeds.googleusercontent.com has not been whitelisted for client ID MY-ID. Please go to https://console.developers.google.com/ and whitelist this origin for your project's client ID."
However, I enabled this for localhost, cleared my caches. The problem is the 'https://966655698-atari-embeds'. Each time the google site loads it generates a new random number sequence. Does anyone know how to workaround this? The google site uses embedded html which I believe is why the initialization failed.
I have tried to white-list https://googleusercontent.com which didn't work (I didn't think it would because the domain changes) but I'm honestly incredibly stumped.
Google hosts all user content using their somedomain.googleusercontent.com. I do not know for certain, but I'm almost sure that to save space they dynamically host their content, meaning that when the embedded html does not need to be actively hosted, it isn't. I had to find a way to host from a site that would always send the request. For me, I found that github pages was the answer.
I found this on adobe's website which somewhat explains what googleusercontent does. https://helpx.adobe.com/analytics/kb/googleusercontentcom-instances.html
To set up github pages this link will explain how to do so https://guides.github.com/features/pages/
You can add this to the developer Google console relatively easily and any connection will submit from your username.github.io. (I believe it also uses https protocol). It also allows me to implement directly using git version control and implements nicely with WebStorm.

How to release chrome extension from GitHub repository

I have the code for my chrome extension on GitHub, which I want to publish on Chrome Store. Doing it manually once is fine, but I want to make an automated flow, where as soon as any commit comes to a release branch, chrome extension on the chrome store is also updated. Is there any documentation by any developer or Google which explains how to setup this for my chrome extension?
There are a few ways to do this:
by using npm module (article about that) (suits for you. You can setup script by using this module, then make a hook for a Travis CI)
by using Store APi // for additional reading
by using docker // for additional reading
I suggest using GitHub Actions to automate publishing. High-level steps are:
Building and packing your extension into zip file.
Obtaining (action) an access token for Google API (. using clientId, clientSecret, refreshToken (how get them? Docs, Article).
Upload zip as a new version to Web Store using API (action)
Once the uploaded version was reviewed, publish it (action).
However, there are some pitfalls in this process, such as undocumented responses from Google API, the need for repeating the uploading if it happened shortly after the previous one, refresh token expiration. If you want to build a convenient and robust workflow based on GitHub Actions to handle all these cases I can recommend reading this series of articles.

Google Analytics Instant Tester

Given that it takes around 24 hours for Google Analytics data to update, this makes it hard to see how data rolls up and is displayed within Google Analytics.
Is there some sort of instant tester, or fast turn around application that allows me to quickly set up custom dimensions/metric within my app and see how they appear?
Options for real time analytics:
Google Realtime Analytics - Built into Google Analytics. To use Google Analytics Realtime, login to your google analytics account and select your web property. Then, on the left hand side click Real-Time->Overview.
GoAccess - If you have access to your web server log files this will give you a real-time view of traffic and does not require anything more than a console access. The really nice things about GoAccess is that it does not rely on any 3rd part services and has the ability to run in real-time or generate reports. To use GoAccess, first install it on your server using either the package manager or in a local directory using the official Git. Then, if you are running a standard Apache configuration just run the executable with:
# goaccess -f /var/log/apache2/your-website-access.log -a
If you are running a non-standard Apache log configuration (or another web server entirely), then you have to give GoAccess a description of your log file. This can be done in the ~/.goaccessrc file. Refer to the GoAccess documentation for specific descriptors in generating a string that describes your log file lines.
There are also a host of other SAS options like Clicky, GoSquared, or piwik (which is open source).

Categories