GA4 Daily Report #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: GA4 Daily Report | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # 매일 09:00 KST | |
| workflow_dispatch: | |
| jobs: | |
| report: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: pip install google-analytics-data requests | |
| - name: Run GA4 daily report | |
| env: | |
| DISCORD_WEBHOOK_URL: ${{ secrets.GA_DISCORD_WEBHOOK_URL }} | |
| GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} | |
| GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} | |
| GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }} | |
| run: python scripts/ga_daily_report.py |