Google Analytics - 记录广告系列信息?

时间:2014-12-19 15:41:35

标签: google-analytics

我创建了一个唯一的网址(http://www.example.com/uniqueurl),并使用Google Link Builder为此页面制作了一个广告系列。

基本上,人们在贸易展览和平面广告上看到这个独特的网址,他们可以访问该网址,然后他们会被重定向到www.example.com/uniqueurl+campaign-characters-medium-etc,这会将他们带到我的主页,还记录了源,媒体等。

主页上有Google Analytics代码,但是我没有在分析中看到有关这些广告系列设置的任何信息....我错过了什么吗?我在找错了地方吗? 302重定向页面是否也需要Google Analytics代码?

提前致谢。

代码如下:

在PHP重定向页面(www.example.com/uniqueurl)上:

<?

    Header( "HTTP/1.1 301 Moved Permanently" );

    Header( "Location: http://example.com/more-example.php?utm_source=WA15&utm_medium=offline&utm_campaign=WA15" );

?> 

在实际页面上(Google Analytics代码):

<script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-1234567-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);
      })();

</script>

0 个答案:

没有答案