アカウントのサインアップに 4 つのステップがある Web サイトがあります。JavaScript を使用して Google アナリティクス ファネルを実装し、サインアップ プロセスの各ステップを通過した人数を調べようとしています。アカウントのサインアップにasp.netウィザードコントロールを使用しました。各ステップは、次と前のボタンで同じページ(signup/default.aspx)を参照します。
protected void wzsignup_ActiveStepChanged(object sender, EventArgs e)
{
string step = wzsignup.ActiveStep.ID.ToString(CultureInfo.InvariantCulture); //example of step name is personaldetails..
string script = "var _gaq=_gaq || [];_gaq.push(['_setAccount','UA-XXXXX-1' ]);_gaq.push(['_setDomainName', 'none']);_gaq.push(['_trackPageview'],'/{0}');(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 = string.Format(script, step);
HtmlGenericControl scriptTag = new HtmlGenericControl("script");
scriptTag.Attributes.Add("type", "text/javascript");
scriptTag.InnerHtml = script;
this.Page.Header.Controls.Add(scriptTag);
}
サインアップ手順のレポートを取得するにはどうすればよいですか?