google-analytics

Add Custom user Property through firebase function

柔情痞子 提交于 2021-02-11 12:33:14
问题 Currently in our realtime database, we have a planDetails node for each uid that has fields like startDate , endDate , planType . I want to track the number of users whose premium plan is active. I am trying to do this by making a firebase function that runs daily and updates a boolean custom user property, say isPremiumActive , to either true or false. I cannot just track the users who have purchased the premium plan because there are many who take the plan once and then don't renew it.

GA BigQuery: Calculating pageviews with a custom dimension

99封情书 提交于 2021-02-11 10:05:21
问题 Using GA BigQuery data, I am trying to calculate the total pageviews across 3 dimensions: date, device category, and a custom dimension (called "type" here). So the desired output is: So the total pageviews should be listed for each date, device, and type combination. I used the following query to get this result. I need to unnest the "type" dimension because it is a custom dimension. #standardsql SELECT date, device, cd6_type, SUM(pvs) AS pageviews FROM( SELECT date, fullvisitorID, visitID,

Setting HTTP-proxy for Google Analytics Reporting API

拥有回忆 提交于 2021-02-10 18:00:36
问题 I have read the following links, which tell us how to set the proxy on Google APIs: setting proxy using httplib2shim client api proxy official repository for httplib2shim google proxy support link google-api-python-client repository My problem is different from the other questions, since I am using ServiceAccountCredentials method from oauth2client.service_account package. The authentication to the API key is done with json file. (also ServiceAccountCredentials.from_json_keyfile_name method).

Setting HTTP-proxy for Google Analytics Reporting API

喜夏-厌秋 提交于 2021-02-10 17:55:33
问题 I have read the following links, which tell us how to set the proxy on Google APIs: setting proxy using httplib2shim client api proxy official repository for httplib2shim google proxy support link google-api-python-client repository My problem is different from the other questions, since I am using ServiceAccountCredentials method from oauth2client.service_account package. The authentication to the API key is done with json file. (also ServiceAccountCredentials.from_json_keyfile_name method).

Reporting URL of downloads in Data Studio when using Google Analytics 4 automatic enhanced measurement events?

こ雲淡風輕ζ 提交于 2021-02-08 23:36:54
问题 I have setup a new Google Analytics 4 property and have enabled enhanced tracking, which records all downloads automatically. When using Google Data Studio, I can see 'file_download' events (so it's definitely working) and use this data to build my report. I need to create a report that shows which files were downloaded each month for a specific page only. It's really easy to get the total number of downloads which occurred on that page, however, I can't for the life of me find any way to

How to Fix HTML5 Video Javascript Tracking Code That is not Working Correctly

浪尽此生 提交于 2021-02-08 15:00:57
问题 I have some JavaScript code I found online that provides stats to google analytics for my HTML5 video. The code however only CORRECTLY displays stats for "video played" and "video paused" but the rest of the information won't display or even calculate. The rest of the info is: "25% video watched", "50% video watched", "75% video watched", "100% video watched". How can I get the code below working properly? Also, is google analytics the only way to track these stats or is there another way?

Google Analytics API Python quickstart

白昼怎懂夜的黑 提交于 2021-02-08 10:22:58
问题 I would like to get some data out of Google Analytics. On step 3.3 on the quickstart guide is written to replace the value of SERVICE_ACCOUNT_EMAIL. The problem is that I cant find the variable SERVICE_ACCOUNT_EMAIL. Neither in the client_secrets.json file nor in the HelloAnalytics.py file. Any ideas? Guide: https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-py 回答1: It's in the JSON file with the key "client_email" (at least in all my key files), and you

Google analytics events not visible in dashboard

亡梦爱人 提交于 2021-02-08 06:36:43
问题 I'm trying to track clicks on the page. I have added GA script to my page and I can see the traffic. The next step is to track click on given button. I have added following script to my buttons: onclick=gtag('event', 'Click g-store top', { 'event_category' : 'ButtonClick', 'event_label' : 'Click to google play' }); I can see the events flowing to my dashboard under "Realtime" label as events in last 30min. But I can't see them in more persistent way under Engagement -> Events. What am I

Google analytics events not visible in dashboard

社会主义新天地 提交于 2021-02-08 06:36:40
问题 I'm trying to track clicks on the page. I have added GA script to my page and I can see the traffic. The next step is to track click on given button. I have added following script to my buttons: onclick=gtag('event', 'Click g-store top', { 'event_category' : 'ButtonClick', 'event_label' : 'Click to google play' }); I can see the events flowing to my dashboard under "Realtime" label as events in last 30min. But I can't see them in more persistent way under Engagement -> Events. What am I

Google analytics events not visible in dashboard

早过忘川 提交于 2021-02-08 06:36:01
问题 I'm trying to track clicks on the page. I have added GA script to my page and I can see the traffic. The next step is to track click on given button. I have added following script to my buttons: onclick=gtag('event', 'Click g-store top', { 'event_category' : 'ButtonClick', 'event_label' : 'Click to google play' }); I can see the events flowing to my dashboard under "Realtime" label as events in last 30min. But I can't see them in more persistent way under Engagement -> Events. What am I