Skip to content

Commit acfa151

Browse files
committed
adding outbound tracking to analytics
1 parent 3745475 commit acfa151

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

offline.html

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,31 +126,31 @@ <h2>Starting From Scratch?</h2>
126126
<h3>Raspberry Pi Model B</h3>
127127
<div class="cost">$35</div>
128128
<div class="availability">
129-
<a class="store" target="_blank" href="https://www.google.com/search?q=raspberry+pi+model+b">Get One</a>
129+
<a class="store trackout" target="_blank" href="https://www.google.com/search?q=raspberry+pi+model+b">Get One</a>
130130
</div>
131131
</div>
132132
<div class="product right">
133133
<img src="assets/images/5v_adapter.png" />
134134
<h3>5V 1A Power Supply</h3>
135135
<div class="cost">$6</div>
136136
<div class="availability">
137-
<a class="store" target="_blank" href="https://www.google.com/search?q=5V+1A+micro+usb+power+supply+raspberry+pi">Get One</a>
137+
<a class="store trackout" target="_blank" href="https://www.google.com/search?q=5V+1A+micro+usb+power+supply+raspberry+pi">Get One</a>
138138
</div>
139139
</div>
140140
<div class="product">
141141
<img src="assets/images/sd_card.png" />
142142
<h3>4GB (or larger) SD Card</h3>
143143
<div class="cost">$8</div>
144144
<div class="availability">
145-
<a class="store" target="_blank" href="https://www.google.com/search?q=4+GB+class+10+sd+card">Get One</a>
145+
<a class="store trackout" target="_blank" href="https://www.google.com/search?q=4+GB+class+10+sd+card">Get One</a>
146146
</div>
147147
</div>
148148
<div class="product right">
149149
<img src="assets/images/wifi_card.png" />
150150
<h3>Miniature WiFi (802.11b/g/n) Module for Pi</h3>
151151
<div class="cost">$12 (optional)</div>
152152
<div class="availability">
153-
<a class="store" target="_blank" href="https://www.google.com/search?q=miniature+usb+802.11+adapter+raspberry+pi">Get One</a>
153+
<a class="store trackout" target="_blank" href="https://www.google.com/search?q=miniature+usb+802.11+adapter+raspberry+pi">Get One</a>
154154
</div>
155155
</div>
156156
</div>
@@ -160,23 +160,23 @@ <h2>Download the Coder Raspberry Pi Image.</h2>
160160
<p>Once you've done your shopping, you'll need to download the Coder SD card image, and transfer it to your SD card. This is a big download, so it may take a few minutes.</p>
161161
<a class="download button trackdl" data-version="0.4" target="_blank" href="http://storage.googleapis.com/coder-images/coder_v0.4.zip">Download Coder</a>
162162
<p class="download-details">Coder v0.4 | 1.04GB Download</p>
163-
<p class="last">An install program for Mac OS X is included, which will help you transfer the disk image to your SD Card. If you are using a PC, check out the instructions on the <a href="http://elinux.org/RPi_Easy_SD_Card_Setup#Using_Windows_7_or_Windows_XP">Raspberry Pi Wiki</a>. There are several utilities that will allow you to install the image.</p>
163+
<p class="last">An install program for Mac OS X is included, which will help you transfer the disk image to your SD Card. If you are using a PC, check out the instructions on the <a class="trackout" href="http://elinux.org/RPi_Easy_SD_Card_Setup#Using_Windows_7_or_Windows_XP">Raspberry Pi Wiki</a>. There are several utilities that will allow you to install the image.</p>
164164
</div>
165165
<div class="section">
166166
<h2>Get the Code.</h2>
167167
<p>Coder is open source, so everyone can help make it better. Fix bugs, build new features, and help make Coder the simplest way for new coders to learn how to create things for the web.</p>
168-
<a class="button" target="_blank" href="http://github.com/googlecreativelab/coder/">Coder on Github</a>
168+
<a class="button trackout" target="_blank" href="http://github.com/googlecreativelab/coder/">Coder on Github</a>
169169
</div>
170170
<div class="section">
171171
<a name="windows" class="anchor"></a>
172172
<h2>Windows-specific Instructions</h2>
173173
<div class="faq">
174174
<h3>Making a Coder SD Card on a PC.</h3>
175-
<p>Windows users can format their SD Card using the SD Card Association's <a href="https://www.sdcard.org/downloads/formatter_4/" target="_blank">formatting tool</a>.</p>
175+
<p>Windows users can format their SD Card using the SD Card Association's <a class="trackout" href="https://www.sdcard.org/downloads/formatter_4/" target="_blank">formatting tool</a>.</p>
176176
</div>
177177
<div class="faq">
178178
<h3>Connecting to coder.local.</h3>
179-
<p>To connect to Coder using a Windows PC, you'll first need to install Apple's <a href="http://support.apple.com/kb/DL999" target="_blank">Bonjour Print Services for Windows</a>. Once this piece of software is installed, you'll be able to visit http://coder.local in Chrome or IE.</p>
179+
<p>To connect to Coder using a Windows PC, you'll first need to install Apple's <a class="trackout" href="http://support.apple.com/kb/DL999" target="_blank">Bonjour Print Services for Windows</a>. Once this piece of software is installed, you'll be able to visit http://coder.local in Chrome or IE.</p>
180180
</div>
181181
</div>
182182
<div class="section">
@@ -196,7 +196,7 @@ <h3>How much does it cost and what do I need to get started?</h3>
196196
</div>
197197
<div class="faq rollup">
198198
<h3>I’ve never coded before. How do I get started?</h3>
199-
<p>There are a ton of resources for learning HTML, CSS and Javascript&mdash;<a href="http://www.codecademy.com/">Codecademy</a> and <a href="https://www.khanacademy.org/cs/tutorials/programming-basics">Khan Academy</a>, to name two&mdash;and you can use Coder to accompany this instruction as you experiment with making your own programs. When you're ready to get started, read through the included Hello Coder application to aquaint yourself with how a Coder program works.</p>
199+
<p>There are a ton of resources for learning HTML, CSS and Javascript&mdash;<a class="trackout" href="http://www.codecademy.com/">Codecademy</a> and <a class="trackout" href="https://www.khanacademy.org/cs/tutorials/programming-basics">Khan Academy</a>, to name two&mdash;and you can use Coder to accompany this instruction as you experiment with making your own programs. When you're ready to get started, read through the included Hello Coder application to aquaint yourself with how a Coder program works.</p>
200200
</div>
201201
<div class="faq rollup">
202202
<h3>Can I share my Coder projects with other people?</h3>
@@ -241,12 +241,12 @@ <h2>Contributing</h2>
241241
<div class="faq">
242242
<h3>Make Coder better</h3>
243243
<p>Help fix bugs, respond to feature requests, and make Coder the most accessible way for new coders to learn to make things for the web. Coder is open source and hosted on Github. </p>
244-
<a href="http://github.com/googlecreativelab/coder/" target="_blank" class="button">Coder on Github</a>
244+
<a href="http://github.com/googlecreativelab/coder/" target="_blank" class="button trackout">Coder on Github</a>
245245
</div>
246246
<div class="faq">
247247
<h3>Make and share Coder stuff</h3>
248248
<p>Use the #Coder hashtag on Google+ and show people how to make cool things. How-tos, demos and samples are a great way to teach and learn.</p>
249-
<a href="https://plus.google.com/s/%23coder" target="_blank" class="button">#Coder on G+</a>
249+
<a href="https://plus.google.com/s/%23coder" target="_blank" class="button trackout">#Coder on G+</a>
250250
</div>
251251
<div class="faq">
252252
<h3>Teach with Coder</h3>
@@ -256,7 +256,7 @@ <h3>Teach with Coder</h3>
256256
<div class="footer">
257257
<div class="madewith bottom"></div>
258258
<div class="links">
259-
<a href="http://www.google.com/intl/en/policies/">Privacy and Terms</a>
259+
<a href="http://www.google.com/intl/en/policies/" class="trackout">Privacy and Terms</a>
260260
<div class="plusholder">
261261
<div class="g-plusone"></div>
262262
</div>
@@ -283,6 +283,10 @@ <h3>Teach with Coder</h3>
283283
var version = $(this).attr('data-version');
284284
ga('send', 'event', 'download', 'click', version );
285285
});
286+
$('a.trackout').click(function() {
287+
var destination = $(this).attr('href');
288+
ga('send', 'event', 'outbound', 'click', destination );
289+
});
286290
});
287291
</script>
288292
</body>

0 commit comments

Comments
 (0)