Where to paste google analytics tracking id if firebase is used for hosting the website? - firebase-analytics

I am setting my website to be advertised by google using google ads. In doing so I came across a section Set up analytics on your website there it showed two options out of which one is Sign in to your website builder, web hosting service, or commerce platform and paste your tracking ID into the analytics section.
I am using firebase hosting service for my website. So as mentioned I went to the analytics section of firebase but I am unable to understand where I have to paste the tracking id.
Please guide me.

If you have Firebase hosting, then you don't need to paste the tracking ID.
Just make sure you add a web app and link it with your current hosted application.
This might change overtime, but on the Firebase console, go to project settings, and scroll down till you see Your apps section. Add (if doesn't exists) a web app, and you should see a Linked Firebase Hosting site
Once linked, Analytics will start tracking metrics for you.

there is no need of going to firebase, google analytics can do it for you just go to their website navigate to your website and copy the javascript code and paste it just below the head tag

Related

Adding Google Analytics Tracking To BigCommerce App Store Listing

I have an app on the BigCommerce app store. I'm trying to set up conversions on Google Analytics, and I need to install my tracking code to the app store. I need to do this because users are bouncing off the app store portal before installing my app.
The url I am directing people too via my own site is:
https://apps.bigcommerce.com/details/85
Is there anyway to add the tracking code to this via BigCommerce's dev portal? Or does anyone know a way around this?
Thanks!
The BigCommerce Marketplace doesn't currently support GA tracking (or any third party tracking scripts).
We're working on building out more tracking and insights for our app partners though, so keep an eye out in the future for access to that kind of data.

Create shared Google Drive document owned by web service

I'm new to the Google APIs, and would like to write a small service class for my web application that:
creates blank Google document without user assistance
assigns a generated title
returns a URL that can be provided to multiple people to edit this document
This document mst be editable via a sharing link. Ideally it is owned/managed as part of the web service's Drive storage.
Code is welcome if it's easier than explaining, but I'm really asking for help understanding Google's service offering.
Can I fully authenticate using only credentials specific to my app? (e.g. call the Drive API without prompting an interloper/observer/user to
authenticate.)
Once authenticated, can I create documents local to my
API?
Whose quota are the created documents consuming, the person that created the API key?
Can I share
these created documents with others?
Will I be able to manage a list of
these created file URLs from a standard Google web UI?
Just to clarify what it is that you are asking. You want to be able to embed a google doc on your website A couple things that can happen here.
First, you will need to create a google doc, lets say a spreadsheet. Within that spreadsheet you will:
click File > Publish to the Web.
From here a new window will be brought up. Click Embed and Published content and settings and click the publish button. Ensure the Automatically republish when changes are made checkbox. (this will allow for your website to be automatically updated anytime that doc is changed.
Take the embedded link that is generated and plop it in your webpage and it will be live.
Now you can share the page via Google Docs and anyone that has that link can make changes to that spreadsheet. As soon as a change is made, it will update on your website with the next refresh.
Hope this is all clear, let me know if there is anything unclear.
Cheers

dropbox style file selection on webpage with google drive

I'm working on a system for our customers (400+ web sites) which allow their customer to upload a file on their web page. So, to clear up that muddy description, our customer is CustomerA and customerA's customer is CustomerB. CustomerA will have a webpage that has a javascript link in it that points back to our servers. That javascript uses angularjs to inject some functionality into their (CustomerA) page. Part of that functionality is allowing customerB to upload files to customerA (actually it gets posted to our REST api and we deliver the file to customerA). Dropbox offers a quick and simple way to integrate this via their dropin javascript. I have that up and running and it was a breeze to set up.
So now I'm trying to figure out if there's a way to allow customerB who has a google drive account to click a button on customerA's site (via the angular injected code) that loads a popup window with their drive contents so they can select a file to upload/share. The way that dropbox does it is that when a user selects a file, I'm given a url to the file that expires after 4 hours. Is there something like this with the google drive sdk? Everything that I'm seeing/reading sounds like it's geared toward writing an app that integrates within google drive rather than google drive integrating with a web page. I also watched the quickstart video and learned how to set up an oauth app, but it looks like I have to register every domain for our customers that could be using our system - ugghh. Is that right? Thanks.

import google analytics report in html page

I am having a requirement of showing google analytics report in the HTML page.I mean without login into Google Analytics , I have to show the report directly into the webpage.Is it possible ,kindly let me know how to do it.
Option 1:
Do some serverside scripting with your favourite programming language to draw data from the Google Analytics reporting API (https://developers.google.com/analytics/devguides/reporting/)
Option2:
Use Google Apps Script to pull data from you GA account. Create a graph from the data. Embed graph in Google Sites webpage. Embed Google Sites page in your site via iframe
Option3
Use Google Apps Script to pull data from you GA account. Create Json/XML-Feed via Apps Script. Pull Feed from Apps Script and parse it into your site via Javascript.
So it's doable (but not via Javascript alone without your visitors logging in to the GA Account in the Browser) but requires more programming than conveniently can be explained in a stackoverflow answer - maybe you could explore one of the options and then come back for specifics.

Questions webstore

I need some light on the matter of Chrome Webstore registration.
I'm still confused despite searching through the web: the "app" will be only private for the site (we're trying to develop a Elgg plugin for our website that will allow users to access their drives).
1) for testing, do I need to register it (I did a search but some say yes like in the Google Drive SDK documentation, some say no in the google-drive-sdk tags)?
2) when the plugin is finished, tested and ready to go live for our users, do I still need to register it and pay 5$?
Thanks you for the answer you can provide us.
You don't need to register your app on the Chrome Web Store if you don't want to integrate with the Google Drive web UI: having the option to create a new file or open a file with your app directly from Google Drive.
Also, it might be easier for you not to create a Chrome Web Store listing while developing.
If you do need to integrate with the Google Drive web UI, but don't want your app to be public, you can publish your app to Trusted Testers only.