TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Tool to post new referrers from Google Analytics to Slack?

1 点作者 mmohebbi大约 10 年前
I&#x27;m starting to build a tool that I imagine already exists. I want to have all new referrers from the real time section of Google Analytics be posted to a Slack channel. Hard requirements are:<p>1. Based on the real time data from Google Analytics. E.g. no one day time lag. No data from crawling the web.<p>2. Use Google Analytics Real Time API or something else approved by Google so it isn&#x27;t going to get Google blocking my analytics account.<p>3. Only posts referrers that have never been seen before, or never been seen for some trailing X day window.

1 comment

omgmog大约 10 年前
The way I&#x27;d approach this would be something like this:<p>- Set up a cron job to check the real-time API for changes to your referrers<p>- when a new referrer is detected, talk to Slack via their WebHooks integration service<p>You could use Google&#x27;s App Engine (and Scheduled Tasks with Cron for Python) for the cron job, <a href="https://cloud.google.com/appengine/docs/python/config/cron" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;appengine&#x2F;docs&#x2F;python&#x2F;config&#x2F;cron</a><p>Read more about the WebHooks integration service here: <a href="https://slack.com/services/new/incoming-webhook" rel="nofollow">https:&#x2F;&#x2F;slack.com&#x2F;services&#x2F;new&#x2F;incoming-webhook</a>
评论 #9120480 未加载