正则表达式匹配的Google Analytics目标跟踪

时间:2014-03-26 15:13:16

标签: javascript regex google-analytics

我正在尝试跟踪GA目标网址跟踪中的8个网页点击。我已经在页面链接中添加了一个onclick函数,如下所示

<ul class="slides">
<li class="item-content"><a href="http://www.mysite.com/product/X1234.html" onclick="_gaq.push(['_trackPageView','/featured/Boxes'])"><img src="featured/Boxes.jpg" alt="Boxes" width="158" height="154" /></a><span class="more"><a href="http://www.mysite.com/product/X1234.html" onclick="_gaq.push(['_trackPageView','/featured/Boxes'])">read more</a></span></li>
<li class="item-content"><a href="http://www.mysite.com/product/B1234.html"  onclick="_gaq.push(['_trackPageView','/featured/Box-Cutter'])"><img src="featured/Box-Cutter.jpg" alt="Box Cutters" width="158" height="154" /></a><span class="more"><a href="http://www.mysite.com/product/B1234.html" onclick="_gaq.push(['_trackPageView','/featured/Box-Cutter'])">read more</a></span></li>
<li class="item-content"><a href="http://www.mysite.com/product/B2289.html"  onclick="_gaq.push(['_trackPageView','/featured/Packing-Tape'])"><img src="featured/Packing-Tape.jpg" alt="Packing Tape" width="158" height="154" /></a><span class="more"><a href="http://www.mysite.com/product/B2289.html" onclick="_gaq.push(['_trackPageView','/featured/Packing-Tape'])">read more</a></span></li>
<li class="item-content"><a href="http://www.mysite.com/product/D1256.html"  onclick="_gaq.push(['_trackPageView','/featured/Markers'])"><img src="featured/Markers.jpg" alt="Markers" width="158" height="154" /></a><span class="more"><a href="http://www.mysite.com/product/D1256.html" onclick="_gaq.push(['_trackPageView','/featured/Markers'])">read more</a></span></li>
</ul>

在我根据目标设定的GA帐户中,我将其设置如下

目标类型:目的地

正则表达式:^ / featured / *

已超过48小时,我已亲自点击这些页面进行测试,但未对其进行跟踪。

我在想我的正则表达式可能是问题

感谢任何建议。

由于

0 个答案:

没有答案