<i id='aqH2B'><tr id='aqH2B'><dt id='aqH2B'><q id='aqH2B'><span id='aqH2B'><b id='aqH2B'><form id='aqH2B'><ins id='aqH2B'></ins><ul id='aqH2B'></ul><sub id='aqH2B'></sub></form><legend id='aqH2B'></legend><bdo id='aqH2B'><pre id='aqH2B'><center id='aqH2B'></center></pre></bdo></b><th id='aqH2B'></th></span></q></dt></tr></i><div id='aqH2B'><tfoot id='aqH2B'></tfoot><dl id='aqH2B'><fieldset id='aqH2B'></fieldset></dl></div>

  1. <legend id='aqH2B'><style id='aqH2B'><dir id='aqH2B'><q id='aqH2B'></q></dir></style></legend>
      <bdo id='aqH2B'></bdo><ul id='aqH2B'></ul>
    <tfoot id='aqH2B'></tfoot>

    1. <small id='aqH2B'></small><noframes id='aqH2B'>

    2. 可嵌入的谷歌分析“天赋"?

      Embeddable Google Analytics quot;Flairquot;?(可嵌入的谷歌分析“天赋?)
    3. <small id='Mz0QH'></small><noframes id='Mz0QH'>

      <legend id='Mz0QH'><style id='Mz0QH'><dir id='Mz0QH'><q id='Mz0QH'></q></dir></style></legend>

            <tfoot id='Mz0QH'></tfoot>
              • <bdo id='Mz0QH'></bdo><ul id='Mz0QH'></ul>

                <i id='Mz0QH'><tr id='Mz0QH'><dt id='Mz0QH'><q id='Mz0QH'><span id='Mz0QH'><b id='Mz0QH'><form id='Mz0QH'><ins id='Mz0QH'></ins><ul id='Mz0QH'></ul><sub id='Mz0QH'></sub></form><legend id='Mz0QH'></legend><bdo id='Mz0QH'><pre id='Mz0QH'><center id='Mz0QH'></center></pre></bdo></b><th id='Mz0QH'></th></span></q></dt></tr></i><div id='Mz0QH'><tfoot id='Mz0QH'></tfoot><dl id='Mz0QH'><fieldset id='Mz0QH'></fieldset></dl></div>

                  <tbody id='Mz0QH'></tbody>
              • 本文介绍了可嵌入的谷歌分析“天赋"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                现在 Google Analytics 有了官方 API,是否有任何实现小而简约的天赋"之类的片段,显示可自定义的统计数据选择,例如今天和本周的访问者,可能还有一两个图表 - 嵌入到自己的管理中面板和后端应用程序?

                Now that Google Analytics has an official API, are there any implementations of a small, minimalistic "Flair" like snippet showing a customizable selection of stats, say for example, today's and the week's visitors, and maybe a chart or two - to embed into one's own admin panels and back-end applications?

                我正在理想地寻找基于 PHP 的实现;完美的解决方案将能够独立运行(没有大的依赖)并且只需要输入 API 密钥/登录数据即可开始.干净的代码和 PHP 5 OOP 将是一个加分项.

                I am ideally looking for implementations based on PHP; the perfect solution would be able to run stand-alone (no big dependencies) and require just to put in the API key / login data to get started. Clean code and PHP 5 OOP would be a plus.

                推荐答案

                GAPI 听起来像您所需要的.

                GAPI sound like what you need.

                GAPI(表示g,a,p,i")是 Google Analytics PHP5 接口.

                GAPI (said 'g,a,p,i') is the Google Analytics PHP5 Interface.

                http://code.google.com/p/gapi-google-analytics-php-interface/

                如下使用:

                $ga = new gapi('email@yourdomain.com','password');
                
                $ga->requestReportData(145141242,array('browser','browserVersion'),array('pageviews','visits'));
                
                foreach($ga->getResults() as $result)
                {
                  echo '<strong>'.$result.'</strong><br />';
                  echo 'Pageviews: ' . $result->getPageviews() . ' ';
                  echo 'Visits: ' . $result->getVisits() . '<br />';
                }
                
                echo '<p>Total pageviews: ' . $ga->getPageviews() . ' total visits: ' . $ga->getVisits() . '</p>';
                

                这篇关于可嵌入的谷歌分析“天赋"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  <legend id='Un9O0'><style id='Un9O0'><dir id='Un9O0'><q id='Un9O0'></q></dir></style></legend>
                      <tbody id='Un9O0'></tbody>

                      <small id='Un9O0'></small><noframes id='Un9O0'>

                      • <bdo id='Un9O0'></bdo><ul id='Un9O0'></ul>
                        <tfoot id='Un9O0'></tfoot>
                        <i id='Un9O0'><tr id='Un9O0'><dt id='Un9O0'><q id='Un9O0'><span id='Un9O0'><b id='Un9O0'><form id='Un9O0'><ins id='Un9O0'></ins><ul id='Un9O0'></ul><sub id='Un9O0'></sub></form><legend id='Un9O0'></legend><bdo id='Un9O0'><pre id='Un9O0'><center id='Un9O0'></center></pre></bdo></b><th id='Un9O0'></th></span></q></dt></tr></i><div id='Un9O0'><tfoot id='Un9O0'></tfoot><dl id='Un9O0'><fieldset id='Un9O0'></fieldset></dl></div>