我正在使用GitHub页面来托管我的最新网站(http://jasonhoffmann.github.io/).我想知道是否有办法从子页面的末尾删除.html扩展名(http://jasonhoffmann.github.io/contact.html),因为无法访问服务器.
我刚刚推出了一个由Wordpress驱动的网站.我将Google Analytics跟踪代码放在我的标题中,但出于某种原因,似乎每次访问都可能是双重触发.我的收益率为0%,"浏览量"是"唯一身份访问者"的两倍.
有没有人有这方面的经验,知道可能是什么问题?我已经挖掘了网站,看不出为什么会有双重实例.我也安装了网站管理员工具,但这不会导致我想到的问题.
任何帮助将不胜感激,我很乐意粘贴任何有用的代码.
更新:对不起,标题代码在这里.虽然我只是从GA网站上复制了这个:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33137300-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
Run Code Online (Sandbox Code Playgroud)