<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>kdtksh.com &#187; analytics</title>
	<atom:link href="http://kdtksh.com/category/web/analytics/feed/" rel="self" type="application/rss+xml" />
	<link>http://kdtksh.com</link>
	<description>日記とか写真とか</description>
	<lastBuildDate>Sun, 05 Feb 2012 01:55:32 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://kdtksh.com/category/web/analytics/feed/" />
		<item>
		<title>動線が複数ドメインにわたる場合のGoogle Analytics初期設定</title>
		<link>http://kdtksh.com/web/analytics/2009/11/%e5%8b%95%e7%b7%9a%e3%81%8c%e8%a4%87%e6%95%b0%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%81%ab%e3%82%8f%e3%81%9f%e3%82%8b%e5%a0%b4%e5%90%88google-analytics%e5%88%9d%e6%9c%9f%e8%a8%ad%e5%ae%9a/</link>
		<comments>http://kdtksh.com/web/analytics/2009/11/%e5%8b%95%e7%b7%9a%e3%81%8c%e8%a4%87%e6%95%b0%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%81%ab%e3%82%8f%e3%81%9f%e3%82%8b%e5%a0%b4%e5%90%88google-analytics%e5%88%9d%e6%9c%9f%e8%a8%ad%e5%ae%9a/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 10:57:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[analytics]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[アナリティクス]]></category>
		<category><![CDATA[ドメイン]]></category>
		<category><![CDATA[異なる]]></category>
		<category><![CDATA[初期設定]]></category>
		<category><![CDATA[複数]]></category>

		<guid isPermaLink="false">http://www.kdtksh.com/web/analytics/2009/11/%e5%8b%95%e7%b7%9a%e3%81%8c%e8%a4%87%e6%95%b0%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%81%ab%e3%82%8f%e3%81%9f%e3%82%8b%e5%a0%b4%e5%90%88%e3%81%aegoogle-analytics%e3%81%ae%e5%88%9d%e6%9c%9f%e8%a8%ad/</guid>
		<description><![CDATA[動線が複数ドメインにわたる場合のGoogle Analyticsの初期設定 ECサイトのカートページ以降など、サイトによっては、サイトの動線の中で異なるドメインに行ってしまう場合があります。 その際には若干タグのカスタマ &#8230; <a href="http://kdtksh.com/web/analytics/2009/11/%e5%8b%95%e7%b7%9a%e3%81%8c%e8%a4%87%e6%95%b0%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%81%ab%e3%82%8f%e3%81%9f%e3%82%8b%e5%a0%b4%e5%90%88google-analytics%e5%88%9d%e6%9c%9f%e8%a8%ad%e5%ae%9a/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://kdtksh.com/web/2009/03/%e4%bb%8a%e3%81%95%e3%82%89ut-loop/' rel='bookmark' title='今さらUT LOOP!'>今さらUT LOOP!</a></li>
<li><a href='http://kdtksh.com/web/2009/03/google%e3%80%80gmail%e9%80%81%e4%bf%a1%e5%8f%96%e3%82%8a%e6%b6%88%e3%81%97%e6%a9%9f%e8%83%bd%e3%82%92%e8%bf%bd%e5%8a%a0/' rel='bookmark' title='Google　gmail送信取り消し機能を追加'>Google　gmail送信取り消し機能を追加</a></li>
<li><a href='http://kdtksh.com/web/2009/01/iphone%e3%81%a8cam-with-me/' rel='bookmark' title='iphoneとcam with me'>iphoneとcam with me</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kdtksh.com/wp-content/uploads/2009/11/R0011980.JPG" rel="lightbox[1233]"><img src="http://www.kdtksh.com/wp-content/uploads/2009/11/R0011980-600x450.jpg" alt="ゴールドコースト" title="ゴールドコースト" width="600" height="450" class="alignnone size-large wp-image-1247" /></a><br />
動線が複数ドメインにわたる場合のGoogle Analyticsの初期設定</p>
<p>ECサイトのカートページ以降など、サイトによっては、サイトの動線の中で異なるドメインに行ってしまう場合があります。<br />
その際には若干タグのカスタマイズやサイト内ページの編集が必要となりますので、ここにメモしておきます。</p>
<h2>異なるドメインをまたぐサイトのアナリティクス設定でやること</h2>
<ul>
<li>?アナリティクスタグのカスタマイズ→対象：サイト内全ページ</li>
<li>?アナリティクスタグを貼る位置の変更→対象：異なるドメインへ飛ぶリンクやボタンがあるページ</li>
<li>?異なるドメインへ飛ぶリンクやボタンのソースへのscriptの追記</li>
</ul>
<h2>?アナリティクスタグのカスタマイズ→対象：サイト内全ページ</h2>
<p>まずアナリティクスのタグに</p>
<pre>
	<code>
	pageTracker._setDomainName("none");
	pageTracker._setAllowLinker(true);
	</code>
</pre>
<p>を追記し、これ↓を全ページに適用させます。（異なるドメインについても貼り付けます）</p>
<pre>
	<code>
	＜script type="text/javascript">
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	＜/script>
	＜script type="text/javascript">
	try {
	var pageTracker = _gat._getTracker("UA-xxxxxx-x");
	pageTracker._setDomainName("none");
	pageTracker._setAllowLinker(true);
	pageTracker._trackPageview();
	} catch(err) {}＜/script>
	</code>
</pre>
<p>※＜scriptの「＜」は全角にしています。</p>
<h2>?アナリティクスタグを貼る位置の変更→対象：異なるドメインへ飛ぶリンクやボタンがあるページ</h2>
<p>?で作成したタグを貼る際、普通は</body>（bodyの閉じタグ）直前に貼りますが、異なるドメインへ飛ぶリンクやボタンがあるページのみ、<body>（bodyタグ）の直下に貼ります。<br />
これは?で行うリンクやフォームのスクリプトを動かせるよう、あらかじめ関数を読んでおくためです）</p>
<h2>?異なるドメインへ飛ぶリンクやボタンのソースへのscriptの追記</h2>
<p>これが一番面倒というか、対応出来る場合とできない場合があるのですが、「カートへ追加する」など、異なるドメインへ飛ばすタグに下記のスクリプトを追記します。</p>
<h3>フォームの場合</h3>
<p>別ドメインへ飛ぶ全てのformタグ内に下記のスクリプトを追記します。</p>
<pre>
	<code>
	onSubmit="javascript:pageTracker._linkByPost(this)"
	</code>
</pre>
<p>
例）</p>
<pre>
	<code>
＜form name="product_form" method="post" action="http://www.example-b.com">
↓
＜form name="cart" method="post" action="http://www.example-b.com" onSubmit="javascript:pageTracker._linkByPost(this)">
	</code>
</pre>
</p>
<p>※「＜」は全角にしています。</p>
<h3>リンクの場合</h3>
<p>別ドメインへ飛ぶ全てのaタグ内に下記のスクリプトを追記します。</p>
<pre>
	<code>
	onclick="pageTracker._link(this.href); return false;"
	</code>
</pre>
<p>
例）</p>
<pre>
	<code>
＜a href="http://www.example-b.com">
↓
＜a href="http://www.example-b.com" onclick="pageTracker._link(this.href); return false;" >
	</code>
</pre>
</p>
<p>※「＜」は全角にしています。<br />
以上、3つの作業を行うと、異なる複数ドメインにまたがるサイト動線内でも、コンバージョンまでのユーザーの流入元や流入キーワードを持つことができて、CVしたユーザーの属性がわかるようになります。</p>
<p>ECサイトなど、CVしたユーザーの属性がわからないとアクセス解析はやってられないので、ぜひやりましょう！</p>
<p>Related posts:<ol>
<li><a href='http://kdtksh.com/web/2009/03/%e4%bb%8a%e3%81%95%e3%82%89ut-loop/' rel='bookmark' title='今さらUT LOOP!'>今さらUT LOOP!</a></li>
<li><a href='http://kdtksh.com/web/2009/03/google%e3%80%80gmail%e9%80%81%e4%bf%a1%e5%8f%96%e3%82%8a%e6%b6%88%e3%81%97%e6%a9%9f%e8%83%bd%e3%82%92%e8%bf%bd%e5%8a%a0/' rel='bookmark' title='Google　gmail送信取り消し機能を追加'>Google　gmail送信取り消し機能を追加</a></li>
<li><a href='http://kdtksh.com/web/2009/01/iphone%e3%81%a8cam-with-me/' rel='bookmark' title='iphoneとcam with me'>iphoneとcam with me</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://kdtksh.com/web/analytics/2009/11/%e5%8b%95%e7%b7%9a%e3%81%8c%e8%a4%87%e6%95%b0%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%81%ab%e3%82%8f%e3%81%9f%e3%82%8b%e5%a0%b4%e5%90%88google-analytics%e5%88%9d%e6%9c%9f%e8%a8%ad%e5%ae%9a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://kdtksh.com/web/analytics/2009/11/%e5%8b%95%e7%b7%9a%e3%81%8c%e8%a4%87%e6%95%b0%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%81%ab%e3%82%8f%e3%81%9f%e3%82%8b%e5%a0%b4%e5%90%88google-analytics%e5%88%9d%e6%9c%9f%e8%a8%ad%e5%ae%9a/" />
	</item>
	</channel>
</rss>

