应用引擎站点的多个域

应用引擎站点的多个域

本文介绍了Google 应用引擎站点的多个域 - 每个域的分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以基本上我正在为我工​​作的公司测试一个新的营销理念,购买 10 个左右的域,其中包含与业务相关的关键搜索词(例如 carservice.com carmot.com hondaservice.com)并将它们链接起来全部到一个站点,托管在谷歌应用引擎上.我已经开始工作了,但我现在想让谷歌分析显示有多少人点击了每个域,这样我就知道它是否值得更新.如果没有人访问它,它不值得花钱.有没有办法可以将每个域发送到托管在同一应用引擎帐户上的不同页面?这样我就可以将它发送到一个页面,该页面具有域独有的分析代码,然后将其重定向到主站点.

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.

谢谢

推荐答案

假设您正在动态生成页面,您可以检查域的请求 URL 并在提供页面之前在页面中插入适当的 Google Analytics 令牌.

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.

这篇关于Google 应用引擎站点的多个域 - 每个域的分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 19:39