简体   繁体   English

单页网站上的Google Analytics(分析)广告系列跟踪

[英]Google Analytics campaign tracking on Single Page Website

we've made a Single Page Website which identifies the page to be loaded by using a #!. 我们已经建立了一个单页网站,该网站使用#!标识要加载的页面。 Now whenever we load a page we manually track a pageView on Google Analytics but this pageview tracking doesn't recognize our campaign tracking query parameters .. they are send in the utmp attribute but Google doesn't do anything with the info. 现在,无论何时加载页面,我们都会在Google Analytics(分析)上手动跟踪pageView,但是此综合浏览量跟踪无法识别我们的广告系列跟踪查询参数..它们是通过utmp属性发送的,但Google不会对信息进行任何处理。 I think Google does something else for campaign tracking. 我认为Google在跟踪广告系列方面还有其他用途。 Any idea how to fix this? 任何想法如何解决这个问题? Our url's are like this: 我们的网址是这样的:

http://vlaamseopera.be/nl/#!/producties/la-forza-del-destino?utm_source=newsletter-feb12&utm_medium=email&utm_content=link-txt&utm_campaign=newsletter

so the page is loaded and then a request is made to load this page: 因此页面被加载,然后请求加载该页面:

/producties/la-forza-del-destino?utm_source=newsletter-feb12&utm_medium=email&utm_content=link-txt&utm_campaign=newsletter

then a pageview is tracked for: 然后跟踪浏览量:

/producties/la-forza-del-destino?utm_source=newsletter-feb12&utm_medium=email&utm_content=link-txt&utm_campaign=newsletter

but google doesn't do anything with the campaign info. 但Google对广告系列信息不做任何事情。 Any ideas? 有任何想法吗?

btw, i know you can use setAllowAnchor .. but i have more information then just the campaign info after the hash. 顺便说一句,我知道您可以使用setAllowAnchor ..但我有更多的信息,而仅是哈希后的广告系列信息。

kind regards, 亲切的问候,

Daan 大安

Maybe load 也许加载

/producties/la-forza-del-destino?utm_source=newsletter-feb12&utm_medium=email&utm_content=link-txt&utm_campaign=newsletter

first, record GA data, and then redirect it to the single-page app? 首先,记录GA数据,然后将其重定向到单页应用程序?

One thing to workaround i can do is using this URL: http://vlaamseopera.be/nl/?utm_source=newsletter-feb12&utm_medium=email&utm_content=link-txt&utm_campaign=newsletter#!/producties/la-forza-del-destino 我可以解决的一件事是使用以下URL: http : //vlaamseopera.be/nl/?utm_source=newsletter-feb12&utm_medium=email&utm_content=link-txt&utm_campaign=newsletter#!/producties/la-forza-del-destino

Now when the homepage is loaded the utm parameters are available, and the cookie is created. 现在,当加载主页时,utm参数可用,并且cookie被创建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM