반응형
반응형
애널리틱스 데이터를 가져오는 방법중 PHP로 가져오는 방법이다 구글 퀵스타트에 나와있는 기본소스는 하나에 하나씩만 가져오도록 되어 있다 require 'vendor/autoload.php'; use Google\Analytics\Data\V1beta\BetaAnalyticsDataClient; use Google\Analytics\Data\V1beta\DateRange; use Google\Analytics\Data\V1beta\Dimension; use Google\Analytics\Data\V1beta\Metric; /** * TODO(developer): Replace this variable with your Google Analytics 4 * property ID before running t..
protobuf로 컴파일된 php파일을 열었을때 위와같이 에러메세지가 나올경우 아래와 같이 php설정을 추가해 주자 zend.multibyte = Off 설정후 php 프로세스 또는 httpd를 재시작해주면 된다.
Format optionPart of DateDescriptionExample Output date +%a Weekday Name of weekday in short (like Sun, Mon, Tue, Wed, Thu, Fri, Sat) Mon date +%A Weekday Name of weekday in full (like Sunday, Monday, Tuesday) Monday date +%b Month Name of Month in short (like Jan, Feb, Mar ) Jan date +%B Month Month name in full (like January, February) January date +%d Day Day of month (e.g., 01) 04 date +%D M..
https://shell.cloud.google.com/ 로그인 - Google 계정 이메일 또는 휴대전화 accounts.google.com 세상 좋아졌네 구글님은 부족함이 없으리로다.
Selenium WebDriver를 사용하다가 인증문제로 쿠키를 사용해야 하는 경우가 있다 아래와 같이 쿠키를 만들고 import pickle import selenium.webdriver driver = selenium.webdriver.Firefox() driver.get("http://www.google.com") pickle.dump( driver.get_cookies() , open("cookies.pkl","wb")) 쿠키를 사용하자 import pickle import selenium.webdriver driver = selenium.webdriver.Firefox() driver.get("http://www.google.com") cookies = pickle.load(open("cooki..
https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema API Dimensions & Metrics | Google Analytics Data API | Google Developers API Dimensions & Metrics The dimensions and metrics supported in the Analytics Data API queries. Dimensions The following dimensions can be requested in reports for any property. Specify the "API Name" in a Dimension's name field for a column of ..