Skip to content

Commit 3092ac1

Browse files
committed
Added warning about using a file URL to example pages (closes snowplow#397)
1 parent 272ef30 commit 3092ac1

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

examples/web/async-large.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@
232232
<body>
233233
<h1>Large_asynchronous_examples_for_snowplow.js</h1>
234234
<h2>This shows how two users can simultaneously use Snowplow on the same page without any clash</h2>
235-
<p>Warning: if your browser's Do Not Track feature is enabled and respectDoNotTrack is not commented out, all tracking will be prevented.</p>
235+
<p>Warning: if your browser's Do Not Track feature is enabled and respectDoNotTrack is enabled, all tracking will be prevented.</p>
236+
<p>If you are viewing the page using a file URL, you must edit the script URL in the Snowplow tag to include an http scheme. Otherwise a file scheme will be inferred and the page will attempt to load sp.js from the local filesystem..</p>
236237
<p>Press the buttons below to trigger individual tracking events:<br>
237238
<button type="button" onclick="playMix()">Play a mix</button><br>
238239
<button type="button" onclick="addProduct()">Add a product</button><br>

examples/web/async-medium.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,14 @@
172172
<body>
173173
<h1>Medium_asynchronous_examples_for_snowplow.js</h1>
174174
<p>Two tracker namespaces are instantiated on this page.</p>
175+
<p>Warning: if your browser's Do Not Track feature is enabled and respectDoNotTrack is enabled, all tracking will be prevented.</p>
176+
<p>If you are viewing the page using a file URL, you must edit the script URL in the Snowplow tag to include an http scheme. Otherwise a file scheme will be inferred and the page will attempt to load sp.js from the local filesystem..</p>
175177
<p>Press the buttons below to trigger individual tracking events:<br>
176178
<button type="button" onclick="playMix()">Play a mix</button><br>
177179
<button type="button" onclick="addProduct()">Add a product</button><br>
178180
<button type="button" onclick="viewProduct()">View a product</button><br>
179181
<button type="button" onclick="addEcommerceTransaction()">Add an ecommerce transaction</button>
180182
</p>
181-
<p>Warning: if your browser's Do Not Track feature is enabled and respectDoNotTrack is not commented out, all tracking will be prevented.</p>
182183
<a href=http://en.wikipedia.org/wiki/Main_Page id=legal class="link out">Both trackers will track this link</a>
183184
<br>
184185
<a href=http://en.wikipedia.org/wiki/Main_Page id=semilegal class="class inbound">Only the cf tracker will track this link</a>

examples/web/async-small.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,16 @@
149149

150150
<body>
151151
<h1>Small_asynchronous_examples_for_snowplow.js</h1>
152+
153+
<p>Warning: if your browser's Do Not Track feature is enabled and respectDoNotTrack is enabled, all tracking will be prevented.</p>
154+
<p>If you are viewing the page using a file URL, you must edit the script URL in the Snowplow tag to include an http scheme. Otherwise a file scheme will be inferred and the page will attempt to load sp.js from the local filesystem..</p>
155+
152156
<p>Press the buttons below to trigger individual tracking events:<br>
153157
<button type="button" onclick="playMix()">Play a mix</button><br>
154158
<button type="button" onclick="addProduct()">Add a product</button><br>
155159
<button type="button" onclick="viewProduct()">View a product</button><br>
156160
<button type="button" onclick="addEcommerceTransaction()">Add an ecommerce transaction</button>
157161
</p>
158-
<p>Warning: if your browser's Do Not Track feature is enabled and respectDoNotTrack is not commented out, all tracking will be prevented.</p>
159162
<a href=http://en.wikipedia.org/wiki/Main_Page id=legal target="_blank" class="link out">Link</a>
160163
<br>
161164
<a href=http://en.wikipedia.org/wiki/Main_Page id=illegal class="class barred">Ignored link</a>

examples/web/sync.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262

6363
<body>
6464
<h1>Synchronous examples for snowplow.js</h1>
65+
<p>Warning: if your browser's Do Not Track feature is enabled and respectDoNotTrack is enabled, all tracking will be prevented.</p>
66+
<p>If you are viewing the page using a file URL, you must edit the script URL in the Snowplow tag to include an http scheme. Otherwise a file scheme will be inferred and the page will attempt to load sp.js from the local filesystem..</p>
6567
<p>Press the buttons below to trigger individual tracking events:<br>
6668
<button type="button" onclick="playMix()">Play a mix</button><br>
6769
<button type="button" onclick="addProduct()">Add a product</button><br>

0 commit comments

Comments
 (0)