{"id":132,"date":"2016-04-14T14:19:02","date_gmt":"2016-04-14T05:19:02","guid":{"rendered":"http:\/\/www.kwonline.org\/memo2\/?p=132"},"modified":"2016-04-14T14:19:02","modified_gmt":"2016-04-14T05:19:02","slug":"adobe-analytics-legacy-s_code-js-%e3%81%8b%e3%82%89-appmeasurement-js-%e3%81%ab%e4%b9%97%e3%82%8a%e6%8f%9b%e3%81%88%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.kwonline.org\/memo2\/2016\/04\/14\/adobe-analytics-legacy-s_code-js-%e3%81%8b%e3%82%89-appmeasurement-js-%e3%81%ab%e4%b9%97%e3%82%8a%e6%8f%9b%e3%81%88%e3%82%8b\/","title":{"rendered":"[Adobe Analytics] Legacy s_code.js \u304b\u3089 AppMeasurement.js \u306b\u4e57\u308a\u63db\u3048\u308b"},"content":{"rendered":"<p>\t\t\t\t\u3082\u308d\u3082\u308d\u65b0\u6a5f\u80fd\u3092\u8a66\u3057\u305f\u3044\u306e\u3067\u3001s_code.js \u304b\u3089 AppMeasurement.js \u306b\u4e57\u308a\u63db\u3048\u307e\u3057\u305f\u3002<\/p>\n<p><strong>\u3084\u3063\u305f\u4e8b\uff1a<\/strong><\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u540d\u306f s_code.js \u306e\u307e\u307e\u3067\u3001 &#8220;DO NOT ALTER BELOW THIS LINE&#8221; \u306e\u30b3\u30e1\u30f3\u30c8\u884c\u914d\u4e0b\u306e\u672c\u4f53\u3092\u3001 AppMeasurement.js \u306e\u672c\u4f53\u306b\u8cbc\u308a\u304b\u3048\u308b\u3068\u3044\u3046\u306e\u304c\u57fa\u672c\u3002<\/p>\n<p>\u3042\u3068\u3001 Media \u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u52d5\u753b\u8a08\u6e2c\u3057\u3066\u308b\u306e\u3067\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u3092 AppMeasurement_Module_Media.js + AppMeasurement_Module_Integrate.js \u306e\u5185\u5bb9\u306b\u8cbc\u308a\u304b\u3048\u308b\u3002<\/p>\n<p>\u6b21\u306b\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4e92\u63db\u6027\u306b\u3064\u3044\u3066\u306f\u3053\u3053\u3067\u8abf\u3079\u308b\u3002<br \/>\n<a href=\"https:\/\/marketing.adobe.com\/resources\/help\/ja_JP\/sc\/implement\/plugins_support.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/marketing.adobe.com\/resources\/help\/ja_JP\/sc\/implement\/plugins_support.html<\/a><br \/>\n\u304a\u3001 getPageName \u30d7\u30e9\u30b0\u30a4\u30f3\u52d5\u304f\u3058\u3083\u30fc\u3093\u3001\u3068\u601d\u3063\u3066\u305d\u306e\u307e\u307e\u8a66\u3057\u305f\u3089 s.wd \u304c\u306a\u3044\u3068\u304b s.fl \u304c\u306a\u3044\u306a\u3069\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u304d\u3066\u6012\u3089\u308c\u308b\u306e\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4e00\u90e8\u3092\u5909\u66f4\u3002<\/p>\n<ul>\n<li>s.wd.location \u3092 location.href \u306b\u7f6e\u304d\u63db\u3048\u308b<\/li>\n<li>s_code.js \u304b\u3089 s.fl \u3068 s.pt \u3092\u6301\u3063\u3066\u6765\u308b\u3002<\/li>\n<\/ul>\n<p>\u3067\u3001\u51fa\u6765\u4e0a\u304c\u3063\u305f getPageName \u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u3053\u308c\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/*\n * Plugin: getPageName v2.1 - for AppMeasurement.js\n *\/\ns.getPageName=new Function(&quot;u&quot;,&quot;&quot;\n+&quot;var s=this,v=u?u:''+location.href,x=v.indexOf(':'),y=v.indexOf('\/',&quot;\n+&quot;x+4),z=v.indexOf('?'),c=s.pathConcatDelim,e=s.pathExcludeDelim,g=s.&quot;\n+&quot;queryVarsList,d=s.siteID,n=d?d:'',q=z&lt;0?'':v.substring(z+1),p=v.sub&quot;\n+&quot;string(y+1,q?z:v.length);z=p.indexOf('#');p=z&lt;0?p:s.fl(p,z);x=e?p.i&quot;\n+&quot;ndexOf(e):-1;p=x&lt;0?p:s.fl(p,x);p+=!p||p.charAt(p.length-1)=='\/'?s.d&quot;\n+&quot;efaultPage:'';y=c?c:'\/';while(p){x=p.indexOf('\/');x=x&lt;0?p.length:x;&quot;\n+&quot;z=s.fl(p,x);if(!s.pt(s.pathExcludeList,',','p_c',z))n+=n?y+z:z;p=p.&quot;\n+&quot;substring(x+1)}y=c?c:'?';while(g){x=g.indexOf(',');x=x&lt;0?g.length:x&quot;\n+&quot;;z=s.fl(g,x);z=s.pt(q,'&amp;','p_c',z);if(z){n+=n?y+z:z;y=c?c:'&amp;'}g=g.s&quot;\n+&quot;ubstring(x+1)}return n&quot;);\ns.fl=function(x,l){return x?(''+x).substring(0,l):x};\ns.pt=function(x,d,f,a){var s=this,t=x,z=0,y,r;while(t){y=t.indexOf(d);\ny=y&lt;0?t.length:y;t=t.substring(0,y);r=s&#x5B;f](t,a);if(r)return r;\nz+=y+d.length;t=x.substring(z,x.length);t=z&lt;x.length?t:''}return ''};\n<\/pre>\n<p>\u3042\u3068\u3001 s.getQueryParam \u3058\u3083\u306a\u304f\u3066\u3001 s.Util.getQueryParam \u3092\u4f7f\u3063\u3066\u306d\u3001\u3068\u30d8\u30eb\u30d7\u306b\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3001 s.Util.getQueryParam \u3092\u65e7 s.getQueryParam \u306b\u30b3\u30d4\u30fc<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/*\n * Plugin: getQueryParam\n *\/\ns.getQueryParam = s.Util.getQueryParam;\n<\/pre>\n<p>\u3042\u3061\u3053\u3061\u5b9f\u88c5\u6e08\u307f\u306e s.getQueryParam \u3092\u30a4\u30c1\u30a4\u30c1 s.Util.getQueryParam \u306b\u66f8\u304d\u63db\u3048\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002<br \/>\n\u203b\/* 20160831\u8ffd\u8a18*\/<br \/>\n\u3053\u306e\u307e\u307e\u3060\u3068\u7b2c2\u30fb\u7b2c3\u5f15\u6570\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u306a\u3044\u306e\u3067\u3001\u5b9f\u306f\u3082\u3046\u3061\u3087\u3044\u5de5\u592b\u304c\u8981\u308a\u307e\u3059\u3002<br \/>\n\u3055\u3089\u306b\u3001\u5f93\u6765\u306es.getQueryParam\u306e\u3088\u3046\u306b\u3001\u8907\u6570\u306e\u5f15\u6570\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u540c\u6642\u306b\u30bb\u30c3\u30c8\u3059\u308b\u4e8b\u3082\u51fa\u6765\u307e\u305b\u3093\u3002<br \/>\n\u305d\u3053\u3089\u3078\u3093\u3082\u76f4\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/helpx.adobe.com\/analytics\/kb\/implementation1\/getqueryparam-versus-util-getqueryparam.html\" target=\"_blank\" rel=\"noopener noreferrer\">getQueryParam versus Util.getQueryParam<\/a><\/p>\n<p>s.c_r \u3068 s.c_w \u306f \u3044\u307e\u306e\u3068\u3053\u308dAppMeasurement \u3067\u3082\u52d5\u304f\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u306b\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>\u3044\u307e\u3060\u306b Target Classic \u4f7f\u3063\u3066\u308b\u3068\u3053\u308d\u306f s.trackTNT \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046\u4e8b\u3082\u3042\u308b\u3060\u308d\u3046\u3051\u3069\u3001\u3053\u308c\u3082 s.wd \u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u306e\u3067\u3001 s.wd \u3092 window \u306b\u7f6e\u63db\u3059\u308c\u3070\u826f\u3057\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u985e\u306f\u3001 FormAnalysis \u4ee5\u5916\u306f\u3061\u3087\u3044\u3061\u3087\u3044\u5f04\u308c\u3070 AppMeasurement \u3067\u3082\u52d5\u304d\u305d\u3046\u306d\u3002<br \/>\nFormAnalysis \u306f DTM \u306e\u30a4\u30d9\u30f3\u30c8\u30eb\u30fc\u30eb\u8a2d\u5b9a\u3067\u4f3c\u305f\u3088\u3046\u306a\u5b9f\u88c5\u3092\u3059\u308b\u4e8b\u3082\u53ef\u80fd\u3060\u308d\u3046\u3051\u3069\u3001\u9762\u5012\u3060\u304b\u3089\u4eca\u306e\u3068\u3053\u308d\u306f\u30b9\u30eb\u30fc\u3002\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3082\u308d\u3082\u308d\u65b0\u6a5f\u80fd\u3092\u8a66\u3057\u305f\u3044\u306e\u3067\u3001s_code.js \u304b\u3089 AppMeasurement.js \u306b\u4e57\u308a\u63db\u3048\u307e\u3057\u305f\u3002 \u3084\u3063\u305f\u4e8b\uff1a \u30d5\u30a1\u30a4\u30eb\u540d\u306f s_code.js \u306e\u307e\u307e\u3067\u3001 &#8220;DO NOT ALTER BELOW [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,12],"tags":[],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-javascript","category-web"],"_links":{"self":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":0,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}