custom Google Analytics Query Explorer 2 form - analytics

I want to make a form just like "Google Analytics Query Explorer 2" with some extra fields. Query generated with this form will be saved in DB and used to fetch Google Analytics periodically.
How can I create it in such a way that I can fetch all Accounts, Properties, Views and Ids directly from google on each onChange in these fields??

Very slow responding community. Ok, no need to answer I have done it somehow.

Related

How to show selective UI features?

I have a UI that needs to either show icons on a timeline view or not based on user profile. How can I show for some users and not for others? For example : the Sports Admin team needs to see the scores of all teams over time in the view (showing all years visually) but the players (when they login to the same web app) only see the timeline view with their team's performance over the years (not other details for a particular year). How can I achieve this? I am using Angular JS and javascript
I have looked into role based SSO login and show selectively and also cookies. My goal is faster performance - meaning the page needs to load fast.
I was able to find a solution for the problem above that we have been facing. After many design sessions, the best approach was to have a "User Settings" link that would save the preferences at a backend database per user id that's already captured via SSO login. The backend returns data based on the user settings as the queries to get data from backend are now made dynamic to take the selections from User Settings into account while querying the backend. As a result the front end shows data specific to user.
Tested this and seems to work perfectly without any affecting any page load performance whatsoever.

Firebase Realtime array populate div

Okay so I’m need guidance on where to start.
What I want to do is upon clicking a button in my web app which will be labelled “search” the web app will connect to my realism database and search the data base for the “search criteria” and the once found all matching cases it will create div blocks with the information inside it, in a list view and assign the ID of the div to the UID it gets back from the database.
database:
Users
--> Country
---->State
----->City
------>Post/ZipCode
------->UID
--------> Users informantion
Welcome to StackOverflow!
A great place to get started is the Firebase Realtime Database doocumentation or searching for Firecasts on YouTube (linked below).
As requested, here are some questions to ask yourself to get started and help scope out and define your new Firebase project.
What language are you going to use?
Are you planning on using any frameworks/libraries? e.g. For Javascript, these would include things like jQuery, Polymer, and React
What information are you storing in your database? e.g. user profiles, private user data/settings, public indexes, username lists, etc.
How is your database structured?
What data is being searched? The entire database? Values in a certain location?
What data needs to be displayed in your view?
Is the data accessible for just the current user or is it a public database that anyone can use?
What search criteria will be used? Is it just one filter at a time or many?
The answers to these questions aren't set in stone, but are to help you start thinking about the future of your project. They can be changed at any time as this isn't SQL where everything has to have its own schema.
If you intend on using "advanced searches" where you'll filter by multiple parameters at the same time, consider using Cloud Firestore instead.
I recommend looking at some Firecasts to help guide you through these questions. Here are some links to them:
Firebase YouTube Channel
Video: Getting Started with the Firebase Realtime Database on the Web
Playlist: Firebase on the Web

Data in database and google analytics does not match

Why are the counts I see in my database different than what I see in Google Analytics? The goal conversion number showing in Google Analytics is much lower than what I see in the database. This is the case for several months.
Few reasons here
Sampled data vs. unsampled data: You can read about here: https://support.google.com/analytics/answer/1042498?hl=en - For API work i normally use a web query explorer to verify that my API call's are being sent and responses match to verify the data: https://ga-dev-tools.appspot.com/explorer/
Adblockers: You might get hits/submissions from people where they are using an ad blocker, hence more entries in Database or Google Analytics.
Users vs. Sessions vs. Hits: You are looking at Unique Visitors/Sessions in Google Analytics instead of the total number of "Events", Not sure how your Goal is setup but best to use events and look at "Total Events" and "Unique Events" to get a sense.
Implementation: You may be firing JavaScript after the person has hit the button without waiting for the page change, can happen on some sites where you take them to a thank-you page or something. Best to check how this is setup and the order in which tag fires and page works.

Generating Google Docs from AngularJS & Cloudant

I'm planning on generating a contract and invoice (populating a template with the data from either the AngularJS object or the new Cloudant object) when a user registers him/herself through an AngularJS app.
I've not been able to find an example of such thing using Google Docs.
Any comment on if this would be even possible?
i havent tried it but expect it would be possible. you should be able to take the data from either Cloudant or directly from the form users fill out and upload it using the Google API
https://developers.google.com/drive/v3/web/manage-uploads#basic_uploads
https://developers.google.com/drive/v3/reference/files/create
https://stackoverflow.com/a/2704986

Framework Advice

I have a site that was done in CakePHP but I want to redevelop to give it a fresher feel.
The object of the site is to create a document the user can download or email to them. The user will select options from a drop down menus from data stored in the DB, the user is given many forms and options in about 5 steps, and the end product is a file (which I would like to be in word, pdf, txt...something the user will select).
The user will also have the option to select the look of their document from various layouts.
Main functionality required is the ability to spell check, create a preview, create a document in various formats.
Thanks for the advice!
By seeing your posted question, I would recommend angular 4 alongwith firebase. Checkout Firebase by Google Firebase will provide you the option to mail documents and show dbs etc. very well.

Resources