Multiple Domains for Google app engine site - Analytics for each domain

旧街凉风 提交于 2019-12-04 05:43:23

问题


Ok, so basically I am testing out a new marketing idea for the company I work for, buying 10 or so domains with key search words relating to the business (e.g carservice.com carmot.com hondaservice.com) and linking them all to one site, hosted on google app engine. I have got this bit to work but I now want to get google analytics to show how many people clicked on each domain so I know if its worth renewing. If no one visits it, its not worth paying for. Is there a way I can send each domain to a different page hosted on the same app engine account? that way I could send it to a page which has a analytic code unique to the domain and then redirect it to the main site.

Thanks


回答1:


Assuming you're dynamically generating your pages, you can check the request URL for the domain and insert the appropriate Google Analytics token in the page before serving it.



来源:https://stackoverflow.com/questions/12159060/multiple-domains-for-google-app-engine-site-analytics-for-each-domain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!