<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>';
                

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

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

                相关文档推荐

                How do I pass parameters into a PHP script through a webpage?(如何通过网页将参数传递给 PHP 脚本?)
                PHP - include a php file and also send query parameters(PHP - 包含一个 php 文件并发送查询参数)
                Where can I read about conditionals done with quot;?quot; and quot;:quot; (colon)?(我在哪里可以阅读有关使用“?完成的条件的信息?和“:(冒号)?)
                Accessing arrays whitout quoting the key(在不引用键的情况下访问数组)
                What is the name for the quot;lt;lt;lt;quot; operator?(“lt;lt;lt;的名字是什么?操作员?)
                default as first option in switch statement?(默认为 switch 语句中的第一个选项?)
                  <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>