【问题标题】:Are events supported in Google Analytics for Mobile?Google Analytics for Mobile 是否支持事件?
【发布时间】:2012-05-11 17:41:48
【问题描述】:

我正在尝试通过使用 google analytics for mobile 的 JSP 版本在我的 Web 服务器的移动风格上设置服务器端事件跟踪

我正在尝试使用 utme 参数来跟踪确定的事件,但我在一天后检查了分析结果页面,但我没有看到预期的事件(我自己触发了它们,所以不会'不是问题),即使我看到导航的跟踪似乎按预期工作。

我知道这个参数并没有明确的出现在手机参数列表中,但是确实出现在了参数的complete list中,这个参数是从手机页面链接过来的,作为参考。

长话短说:Google Analytics 的移动 (JSP) 版本是否支持使用 utme 参数?

【问题讨论】:

    标签: mobile google-analytics


    【解决方案1】:

    Google Analytics for Mobile 实施目前不支持 utme 参数。但是,您可以使用此项目:

    http://code.google.com/p/serversidegoogleanalytics/

    支持事件,非常简单,适用于php 5.2

    此项目的示例实现如下:

    <?php
    /**
    * SSGA example
    */
    
    include("ssga.class.php");
    
    $ga = new Elements_Tools_Serversideanalytics();
    $ga->setAccountId("UA-123456789-1");
    $ga->setCharset("UTF-8");
    $ga->setHostName("localhost");
    $ga->setLanguage("en");
    $ga->setPageTitle("SSGA example");
    $ga->setPageView("/index.php");
    
    /**
    * Send events
    */
    
    $ga->setEvent("Test", "iPad", "12345433454323", "124");
    $ga->createEvent();
    
    $ga->setEvent("Another Test", "iPad", "12345433454323", "21");
    $ga->createEvent();
    
    
    ?>
    

    这里还有一个比较完整的项目,需要php 5.3:

    http://code.google.com/p/php-ga/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-30
      • 1970-01-01
      • 1970-01-01
      • 2021-02-10
      • 1970-01-01
      • 2014-10-30
      • 1970-01-01
      • 2023-02-22
      相关资源
      最近更新 更多