elefant/app-analytics 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

elefant/app-analytics

Composer 安装命令:

composer require elefant/app-analytics

包简介

Google Analytics app for the Elefant CMS

README 文档

README

This is a simple Google Analytics app written for the Elefant CMS. It embeds the Analytics code into pages, and allows the site admin to view basic stats through the Elefant admin toolbar.

Installation

To install, unzip it into your apps folder. You'll see "Analytics" appear in the Elefant Tools menu. Click on it to set your site ID and account info.

Next, add the following code to your layouts where you want the tracking code to appear (usually just before </body>):

{! analytics/code !}

For extra speed you can tell Elefant to hard-code the Analytics code into the template so the app is only called when the template is first compiled. To do this, change the above embed code into the following:

{# analytics/code #}

The one thing to be aware of is that if your site ID is updated in the future, the old code will be hard-coded in the compiled templates, so you'll need to recompile the layout templates. The Assetic app has a handy button to do this in a single click.

Screenshots

Admin stats screen:

统计信息

  • 总下载量: 42
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-05-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固