google-analytics

How do I get View ID from Google Analytics 4?

若如初见. 提交于 2020-12-09 06:38:47
问题 I tried to retrieve all information about my website from GA (Google Analytics). I'm using laravel and this package https://github.com/spatie/laravel-analytics to make my life easier. However, that package requires "View ID" from GA, which I can't help myself to find it. I read this thread https://support.google.com/analytics/thread/15684521?hl=en and I'm guessing that since GA 4 they totally removed the views column from Web + App property (which will be created as a default) (correct me pls

How to create view in Google Analytics 4

为君一笑 提交于 2020-12-08 07:52:52
问题 How do you create a view within Google Analytics v4? I am trying to query for Analytics data, specifically conversion information. However, I cannot find adequate documentation for this new version. I have been following this guide. There is not a "create view" button has referenced in the older documentation. https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-py I am using a "Web + App" app which I assume is v4. 回答1: In Google Analytics 4 ( App+Web ) you

How to set “secure” attribute of the cookies used by Google Analytics Global Site Tag (gtag.js)?

不想你离开。 提交于 2020-12-06 05:43:06
问题 I'm using Google Analytics Global Site Tag (gtag.js) tracking code on my Github Pages. The following tracking code is copy-and-pasted as the first item into the <HEAD> of every webpage I want to track (I replaced my own tracking ID with GA_MEASUREMENT_ID ): <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments)