webgriffe/trackjs-extension

{Track::js} Magento 扩展

安装: 10

依赖项: 0

建议者: 0

安全性: 0

星星: 1

关注者: 4

分支: 0

公开问题: 0

类型:magento-module

1.0.0 2015-12-16 12:04 UTC

This package is auto-updated.

Last update: 2024-09-07 22:04:54 UTC


README

{Track::js} 是一个 JavaScript 错误监控服务,这个 Magento 扩展允许启用它。

Build Status

安装

通过 Composer 安装扩展

{
	"require": {
		"webgriffe/trackjs-extension": "*"
	}
	...
    "repositories": [
	    {
    	    "type": "vcs",
        	"url": "the/url/of/this/repo"
    	}
    ],
	...
}

或者使用 modman 安装

$ modman clone the/url/of/this/repo

如常规操作,安装后清除 Magento 缓存。

使用

登录到管理面板,然后转到 系统 -> 配置 -> 高级 -> 开发者。在 {Track::js} Javascript 错误监控 下,将 启用 设置为 ,并在 令牌 字段中设置您的令牌,然后保存配置。

此外,您还需要手动编辑主题的 page/html/head.phtml 模板文件,以便在页面中的每个脚本之前添加 Trackjs 脚本。要做到这一点,请将这些行放在您的 head.phtml 模板中

<?php echo $this->getChildHtml('webgriffe_trackjs_script'); ?>
<?php unset($this->_childrenHtmlCache['webgriffe_trackjs_script']); ?>
<?php $this->unsetChild('webgriffe_trackjs_script'); ?>

Trackjs 文档 中所述,在每个 <head> 块中的每个脚本之前。

致谢

Webgriffe® 开发。