Exclude Google Analytics data from outside a Chrome extension - google-chrome-extension

I created a Google Analytics account for my Chrome extension. I use a faked website url in the parameters because GA doesn't accept a protocol like chrome-extension://...
As GA isn't linked to a specific domain which I own, it doesn't block data from outside. Is there a solution for this ? Can GA use chrome-extension:// or my extension id ?
Thx

One of the solutions is to create a real web page on your host, for example http://example.com/analytics.html. And insert in this page the google analytics script.
Then inject this page as an iframe using content scripts into the websites you need. This will trigger google analytics without problems.

Related

GOOGLE ANALYTICS vs CHROME PLATFORM ANALYTICS vs FIREBASE ANALYTICS for a Chrome Extension with web component plus mobile apps?

Firebase Analytics can cover web apps and mobile apps, but is not supported for analytics inside Chrome Web Store. Chrome Platform Analytics seems to be purpose-made for packaged extensions, but I guess won't work for web or mobile components. And then there's good old Google Analytics... hmmm...
In general, it better to create a separate analytics property/tag for each separate medium?
If so, is the data shared across properties?
My Chrome extension has a web component. Should I use one standard Google Analytics tag across both the extension package and web instead of Chrome Platform Analytics? Or would I use Chrome Platform Analytics plus a separate property for the web pages? (note: web used for registration, logging in/out, settings, dashboard)
I intend to create the same extension for other browser platforms. Would I use a different Google Analytics property/tag or the same one across all extensions?
Mobile apps are not yet developed. Should I use Firebase Analytics for these, or what?
Thanks for your input!

Using Google Analytics on a website hosted in Microsoft Azure

To apologize upfront -- I am not a coder and have zero knowledge of coding, I am merely someone who really wants to use Google Analytics for a website hosted from Microsoft Azure.
Goal: analyze access data and create easily viewed, detailed reports of it of a website hosted on Microsoft Azure
Current idea for the method: Google Analytics (via SSH?)
Status:
The website is hosted in a server in Japan
I am an owner of the web app and the website is uploaded on in Microsoft Azure
I have been advised to log on to Azure portal, then remote connect web service via SSH console
No one in company seems to know how to do anything further than this
I cannot find any how-to online about how to achieve the above goal
Can anyone help me by advising 1)whether this is possible with Google Analytics, 2) whether there is another easier method, or 3) if it is impossible in the first place?
Thank you in advance,
Regards,
Roselle
You can use the Google Analytics API as described in this blog post and see if that helps.
Also, you can analyze the data through Azure Application Insights feature.
Take a look at App Insights service: http://azure.microsoft.com/en-us/documentation/services/application-insights/
Yes you should be able to add Google Analytics JavaScript references to the website like you can any website.
If you are looking for page analytics like (user visits, top pages, etc.) that should all be handled by adding Google Analytics script references to your website. (Typically in a base template or etc.)
I am guessing that if you are remote connecting via SSH that the website is hosted on an Azure VM running a Linux distribution. So it seems they are suggesting that you tunnel into the machine with SSH and then load the changes necessary (copying files or editing files) to add the script references to activate Google Analytics.

Azure Web Apps : How to access specific instance directly via URL?

We have deployed our Sitecore CMS on to Azure Web Apps and having some indexing issues or similar. i.e. the updated changes is reflected for some users and not for all.
We have a scale turned on to 2.
I would like to troubleshoot by accessing the instance 1 and 2 directly via URL to make sure both instances have index built 100%.
How do I access each Azure Web Role instances directly via URL?
Thanks.
The first step is to get the list of instance names. There is an Azure API for it, which you can easily invoke using Resource Explorer (https://resources.azure.com/). Use these steps:
In Resource Explorer, find your Web App (in the tree or using search box)
Under the app, click on Instances, which gives you an array of instances. Each instance has a long name like 622e6b27f9077701f23789e5e512844d22a7dfdd29261bc226f65cd000e2d94a
Once you have the instance names, you can add a cookie in your requests to aim at a specific instance by setting the ARRAffinity cookie to that value. e.g.
ARRAffinity=622e6b27f9077701f23789e5e512844d22a7dfdd29261bc226f65cd000e2d94a
You can do it using a tool like curl. Or I like to use the EditThisCookie Chrome extension (link), which lets you set it from the browser.
In fact, you'll find that after hitting the page normally from the browser, you'll already get an ARRAffinity, as it's used for session stickiness. But the Chrome extension lets you change it and aim at other instances.
See also related blog post: http://blog.amitapple.com/post/2014/03/access-specific-instance/

Redirect Hyperlinks to Local Browser in Azure RemoteApp

Scenario:
Outlook client setup using Azure Remote App. A Hyperlink is included in an email. Currently the link is opened using a browser on the Remote App server. Is there a way to redirect this link to a local browser on the user's PC using a group policy or something else?
What you are looking for is called file-type associations which work both ways (e.g.: local PDF file opens in Azure RemoteApp or as in your case, Azure RemoteApp external URLs are opened in local browser).
Currently, neither of these are supported for Azure RemoteApp, but you can vote here: http://feedback.azure.com/forums/247748-azure-remoteapp/suggestions/5960208-ability-to-create-file-type-associations and we are actively reevaluating our priorities.
Disclaimer: I work on Azure RemoteApp :)
No, you cannot do that. Outlook always opens the links locally.

How to host html application on Azure

I have a single page html application, that uses a lot of jQuery. The app content (data as xml and media audio/video/image) is (and has to be) provided by blobs on azure account. I don't need any application server.
What is the recommended way to host such single page html application on Windows Azure Environment (Azure is a requirement).
As I do not need any application server, all application files are currently uploaded into single container as Blobs with appropriate content types. It all works very good.
Still, I've seen that Azure has some website hosting capabilities I've been wondering if what I did is appropriate?
Thanks
Windows Azure Web Sites would work well and could be free for the duration. If the constraints of the free offering don't work for you, you can scale out easily.
You could also store your home page in Azure blob storage, but that means users would have to have the full path to it as there's no server configuration to specify a default page. Publicizing your site endpoint via a vanity URL from bit.ly or the like could make that a non-issue though.
Do note though, that by having everything in blob storage, you're incurring a transaction cost for every image, every page, every script access (that's not cached on the browser that is). Depending on the nature of your site and traffic, it could be more cost-effective to leverage something like Windows Azure Web Site for some of this.

Resources