<?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/"
	>

<channel>
	<title>21strom OpenSim &#187; Second Life visitors logging &#124; 21strom OpenSim</title>
	<atom:link href="https://opensim.21strom.com/en/tag/second-life-visitors-logging/feed/" rel="self" type="application/rss+xml" />
	<link>https://opensim.21strom.com</link>
	<description></description>
	<lastBuildDate>Sat, 30 Nov 2019 00:35:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Visitor counter + Google spreadsheet, update for 2013</title>
		<link>https://opensim.21strom.com/en/2013/visitor-counter-google-spreadsheet-update-for-2013/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=visitor-counter-google-spreadsheet-update-for-2013</link>
		<comments>https://opensim.21strom.com/en/2013/visitor-counter-google-spreadsheet-update-for-2013/#comments</comments>
		<pubDate>Tue, 06 Aug 2013 21:38:31 +0000</pubDate>
		<dc:creator>Zuza Ritt</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[google form counter]]></category>
		<category><![CDATA[LSL]]></category>
		<category><![CDATA[opensim script]]></category>
		<category><![CDATA[OpenSim visitor counter]]></category>
		<category><![CDATA[Second Life counter]]></category>
		<category><![CDATA[Second Life visitors logging]]></category>
		<category><![CDATA[SL google spreadsheet]]></category>
		<category><![CDATA[spreadsheet counter]]></category>

		<guid isPermaLink="false">http://opensim.21strom.com/?p=142</guid>
		<description><![CDATA[Update: At Oct. 8, 2014 Maria Korolov published new and easier way how to log visitors to Google spreadsheet. Please try her version first. If you want to log visitors of your region or parcel to spreadsheet, it is possible even in new Google Drive. This howto is made for &#8230;]]></description>
				<content:encoded><![CDATA[<p><strong>Update:</strong> At <strong>Oct. 8, 2014</strong> Maria Korolov published new and <a href="http://www.hypergridbusiness.com/2014/10/easier-google-spreadsheet-visitor-logger/" target="_blank">easier way how to log visitors to Google spreadsheet</a>. Please try her version first.</p>
<p>If you want to log visitors of your region or parcel to spreadsheet, it is possible even in new Google Drive. This howto is made for spreadsheets in <strong>August 2013</strong> and it works properly.<br />
You do not need any special skills like programming or inworld scripting.</p>
<h3>1. step</h3>
<p>Thanks to <strong>Maria Korolov</strong>, for the idea and very nice and <a title="Former script" href="http://www.hypergridbusiness.com/2012/01/log-your-visitors-to-google-spreadsheet/" target="_blank">descriptive article</a>. Her instructions are part one. My howto explaining how to change the Google URL and inworld script to work with current Google forms.<br />
Make your <strong>new Google form</strong> as described in article, <strong>get the form URL</strong>.<br />
Read more info about script there, if you want. Download Maria&#8217;s script, if you would like to study the changes.</p>
<h3>2. step</h3>
<p>Bellow is my complete script for your inworld counter. Before you use it, you have to change some parts of script. <strong>It is not working as is!</strong></p>
<p>Your current URL for view the form looks like this one:</p>
<p>https://docs.google.com/forms/d/<strong>XXXXXXXXXXXXXXXX</strong>/viewform</p>
<p>where <strong>XXXX&#8230;</strong> is your unique ID for this form.</p>
<p>You have to change several parts of script:</p>
<p><strong>First line of script</strong> &#8211; insert your <strong>Google form ID</strong> above<br />
<code>string google_formkey = "XXXX...."; //MUST REPLACE with your own Google form key</code></p>
<p>Next part for change is explained by Maria &#8211; if you want <strong>log in your avatar</strong>.<br />
If the owner of inworld object with script has to be logged, comment this line:<br />
<code>//if( llDetectedKey( i ) != llGetOwner() )</code></p>
<p>If you do not want to log in your avatar, let it uncommented:<br />
<code>if( llDetectedKey( i ) != llGetOwner() )</code></p>
<p>Tha last part is most tricky.<br />
In my script you can find this line:<br />
<code>string URL = "<span style="color: #3366ff;">https://docs.google.com/forms/d/</span>" + google_formkey + "<span style="color: #3366ff;">/formResponse</span>" + "<span style="color: #ff0000;">?</span><span style="color: #3366ff;">entry.YYY</span>=" + detected_name + "<span style="color: #ff0000;">&amp;</span><span style="color: #3366ff;">entry.ZZZ</span>=" + region_name + "<span style="color: #ff0000;">&amp;</span>submit=Submit";</code></p>
<p><strong>All blue parts has to be replaced by your values. </strong><br />
My values above representing this URL:<br />
<strong>https://docs.google.com/forms/d/<span style="color: #000000;">XXXX&#8230;</span>/formResponse?<span style="color: #0000ff;">entry.724632390</span>=<em>AVATARNAME</em>&amp;<span style="color: #0000ff;">entry.57313582</span>=<em>REGIONNAME</em>&amp;submit=Submit</strong></p>
<p>Devide your URL to following parts:<br />
First part is before XXXX&#8230; (your unique ID), in my case <code>"https://docs.google.com/forms/d/"</code><br />
Next is your Google form ID, it is loaded at first line of script in string <code>google_formkey</code><br />
Add the rest of URL between Form ID and question mark, in my case <code>"/formResponse"</code><br />
Add ID of your entries. First one starting with question mark (<span style="color: #ff0000;">?</span>), other ones starting with ampersand (<span style="color: #ff0000;">&amp;</span>)</p>
<p><strong>How to find your entries IDs?</strong><br />
For some reason Google do not use neat entry IDs like &#8220;entry.1&#8243; and &#8220;entry.2&#8243; anymore, but some random numbers.<br />
You can find it in HTML code of your form. On the form page rightclick on the word &#8220;Avatar&#8221; and find &#8220;<strong>Inspect element</strong>,&#8221; &#8220;<strong>Show source code</strong>&#8221; or similar option, depending on your browser. It shows the code and probably highlight the element of &#8220;Avatar.&#8221; See the picture bellow.<br />
Find the IDs of your elements and replace them in your script &#8211; <code>"entry.YYY"</code> by Avatar value and <code>"entry.ZZZ"</code> by Region value.</p>
<p><a href="http://opensim.21strom.com/wp-content/uploads/2013/08/GoogleForm.jpg"><img class="size-medium wp-image-137 alignnone" alt="GoogleForm" src="http://opensim.21strom.com/wp-content/uploads/2013/08/GoogleForm-300x233.jpg" width="300" height="233" /></a></p>
<p>You can check the correct values even without scripting and logging inworld. Put together your URL with your values:<br />
<strong>https://docs.google.com/forms/d/XXXX&#8230;/formResponse?entry.724632390=<em>AVATARNAME</em>&amp;entry.57313582=<em>REGIONNAME</em>&amp;submit=Submit</strong></p>
<p>Replace <em>AVATARNAME</em> and <em>REGIONNAME</em> by any values you choose.<br />
Insert URL into your browser and press Enter. If you get error message, you made a mistake. If your URL is right, Google thanks you for submiting your answer and you just manually insert first visitor to your spreadsheet!</p>
<p><a href="http://opensim.21strom.com/wp-content/uploads/2013/08/google-spreadsheet-visitor-logger-2013.txt">Download sample script. </a>Works in OpenSim.<br />
<a href="http://opensim.21strom.com/wp-content/uploads/2013/08/google-spreadsheet-visitor-logger-2013-SLversion.txt">Download Second Life version of script</a>. (Escaped avatar name)</p>
<p>Insert script with proper values to your object inworld. It is done.</p>
<p>I hope this howto will be helpful. If you find very different Google form URL or if it does not work for you (and you are absolutely sure it is not your typo), let me know in discussion.</p>
]]></content:encoded>
			<wfw:commentRss>https://opensim.21strom.com/en/2013/visitor-counter-google-spreadsheet-update-for-2013/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
