How to select specific Google Calendar through Google API - google-calendar-api

How to select non-primary calendar using Google's Calendar API? I can see from documentation you can get full list of calendards, but nothing about how to select specific one.
For example I have calendar with title 'My Calendar_1'
I don't want to iterate over all calendars to check each name.
Seems to be it should some how use Query, but the documentation on its application is so poor.
Thanks in advance.

Related

Google analytics views per page_url instead of views per title

I have two projects in google analytics.
First project was created in September 2020. This one shows views per page url. Super useful.
Second project was created in December 2020. This one only shows views per page title. I have same page title on all pages hence this doesn't help.
Is there any setting that I missed or has google changed its analytics.
Thanks
When creating a new property, Google now creates a Google Analytics 4 property. This allows you to combine user data from mobile apps with data from your website. By creating a Universal Analytics property everything should be as how it was before.
Delete your current property.
Create a new property and click Show advanced options at step 1 (Property setup).
Enable create a Universal Analytics property.
Enter your website URL and click Create a Universal Analytics property only.
The Google Analytics environments should now match, thus showing views per page URL.

Cannot find view column in Google Analytic

We are using GA product. In our Admin board, we create a new account and a new property(web+App), but we don't see the view column. Since we want to use the google report api, the viewId is required, so we need to figure out how to create the views.
You can create a former one.
Follow these steps.
Click the 'Show advanced option'
during the property creation
Activate the 'Create a Universal Analytics property'
Check Also 'Create a Universal Analytics property Only'
Then you can see Tracking code and View.
Only Universal Analytics property has ViewID. GA4 has not.
Admin > Create Property > Show Advance Option
new property(app+web) doesn't provide any 'view's. And i think the thing 'the viewid' meant 'measurement id' in new property.
maybe below posts from Krista would be helpful to deal with your problem
https://www.kristaseiden.com/step-by-step-setting-up-an-app-web-config-tag-in-gtm/

How can I autofill checkout of Woocommerce with Google place API?

I have activated an API Key from "Google Places API Web Service" following all the instrutions.
Now I'm trying to use this API to autocomplete billing form of Woocommerce like this demo:
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform.
How can I adapt this code in my form?
Do I need to edit only ID or other?
Thanks very much for the answers!
PS: The API KEY works with Google's demo.
edit:
I have made a new field like the google demo fot the autocomplete and edited the Id. It's working for the simple field, but not for COUNTRY and STATE because they are select fields.
How can I set up COUNTRY AND STATE?
I can have the returning value "US"
In woocommerce I have Stati Uniti (US)

What is a viewId in Google Analytics?

According to the Google Analytics "Creating a Report" guide, a required field for a request is the viewId:
A valid view ID for the viewId field.
Cool. So what is a viewId and where do I find it? I click on the viewId link and it says:
Unique View Id for retrieving Analytics data.
Umm. Ok. But what is it, and how do I find it for the report I want? It doesn't appear to be the same as "property ID". Come on Google, we need a little more to work with here.
Following below steps to get View ID.
Sign in to Google Analytics.
Click Admin, and navigate to View.
In the VIEW column, click View Settings.
View ID places in Basic Settings
A property is where the data is collected (so hits to a property count toward your hit quota for that account). A view is where you look at the data, it displayed hits from the property. Hits displayed in view do not count towards your quota.
Use cases are that you can include/exclude/change the data in views by filters, and set different permissions for views (e.g. different departments should have access only to tracking for certain sub-directories, stuff like that). You can create up to 25 views with different settings per property.
You find the view id when you go to the admin section and look at the outer right column (which is labelled "views"). Select the view you want to query from the dropdown and go to "view settings", there you find the id. Or visit the query explorer while you are logged in to Google and select the view from the dropdown, this will also show the view id (and you can start testing queries right away).
This document describes the Google Analytics account structure, and should answer your question as to what a view is:
https://support.google.com/analytics/answer/1009618
If you're even unsure of what ID to use with a particular GA API, you can use the account explorer to find out:
https://ga-dev-tools.appspot.com/account-explorer/
Only Universal Analytics property have VIEWID, GA4 has not.

How to show count of any jstree in google analytics

I am using google tag manager to fire tags for my website, I created custom javascript variable which returns count of my jstree selection (i.e how many users selected how many items) and i placed a trigger on this count, just wanna know if there is any way that i can see this count on my google analytics page so as to analyse how many users are selecting how many items?
Found answer myself, Hope it will help others too.
To show count of any custom variable that you created on your google tag manager on your Google Analytics page is possible by creating custom dimensions on Google Analytics. Steps for doing this are below :-
Go to your google Analytics account, open admin section.
-Then go under property-->custom definations and select custom dimensions
click on new custom dimension add name and select scope "session" and click on create (Note :- please note your dimension index).
Go to google tag manager, Create a new tag, click on more settings under "configure tag" and add custom dimension, place index number and dimension value(custom variable that you created) here.
set your firing rule and save it.
Now, you can see it under report by setting secondary dimensions as custom dimensions. Also if you want to further analysis on this data you can also use Biq Query plugin for GA.
You are ready to go!!

Resources