<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>llamerada</author_name>
  <author_url>https://blog.hatena.ne.jp/llamerada/</author_url>
  <blog_title>llameradaの日記</blog_title>
  <blog_url>https://llamerada.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>Ajaxの普及に伴い、ページ当たりのユーザの滞在時間が注目されるようになっている。従来、サービスがユーザに与えるインプレッションの指標としてページ・ビューが広く用いられている。しかし、Ajaxを利用するとページの移動があまり発生しないため、ページ・ビューが低くなってしまう。そこで、インプレッションの指標として、滞在時間を使おうという動きがある。今回、JavaScriptでユーザの滞在期間が記録できるかどうか調べてみた。取り組む前は難しいかなと思ったが、実際にはとても簡単であった。コードは下記。 (function(){ var start = new Date; window.onunload…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fllamerada.hatenadiary.org%2Fentry%2F20060318%2F1142679863&quot; title=&quot;ユーザがページに滞在した時間をサーバに記録するJavaScript - llameradaの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-03-18 20:04:23</published>
  <title>ユーザがページに滞在した時間をサーバに記録するJavaScript</title>
  <type>rich</type>
  <url>https://llamerada.hatenadiary.org/entry/20060318/1142679863</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
