diff options
-rw-r--r-- | templates/web/fixmystreet.com/static/posters.html | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/templates/web/fixmystreet.com/static/posters.html b/templates/web/fixmystreet.com/static/posters.html index 2e26ad40e..6cdc01230 100644 --- a/templates/web/fixmystreet.com/static/posters.html +++ b/templates/web/fixmystreet.com/static/posters.html @@ -11,6 +11,16 @@ badge = '<a href="https://www.fixmystreet.com/"> <img src="https://www.fixmystreet.com/i/fms-badge.jpeg" alt="FixMyStreet - report, view or discuss local problems" border="0"></a>' %] +<script> +var trackGoodieDownload = function(name, url) { + ga('send', 'event', 'goodie', 'download', name, {'hitCallback': + function () { + document.location = url; + } + }); +} +</script> + <div class="sticky-sidebar"> <aside> <ul class="plain-list"> @@ -45,7 +55,7 @@ <li>Ideas for letting more people know about FixMyStreet</li> </ul> -<a href="/cobrands/fixmystreet/posters/activist-pack.zip" class="download-button">Download ZIP file</a> +<a href="/cobrands/fixmystreet/posters/activist-pack.zip" onclick="trackGoodieDownload('activist-pack', '/cobrands/fixmystreet/posters/activist-pack.zip'); return false;" class="download-button">Download ZIP file</a> <h2 id="school-pack">Activity Pack for Schools, Brownies, and Scouts</h2> @@ -59,7 +69,7 @@ <li>Ideas for activities</li> </ul> -<a href="/cobrands/fixmystreet/posters/schools-clubs-pack.zip" class="download-button">Download ZIP file</a> +<a href="/cobrands/fixmystreet/posters/schools-clubs-pack.zip" onclick="trackGoodieDownload('schools-clubs-pack', '/cobrands/fixmystreet/posters/schools-clubs-pack.zip'); return false;" class="download-button">Download ZIP file</a> <h2 id="community-pack">Community Group Pack</h2> @@ -75,7 +85,7 @@ <li>Instructions for including a feed of local FixMyStreet reports on your site or blog</li> </ul> -<a href="/cobrands/fixmystreet/posters/community-group-pack.zip" class="download-button">Download ZIP file</a> +<a href="/cobrands/fixmystreet/posters/community-group-pack.zip" onclick="trackGoodieDownload('community-group-pack', '/cobrands/fixmystreet/posters/community-group-pack.zip'); return false;" class="download-button">Download ZIP file</a> <h2 id="web">Website Badge</h2> @@ -88,19 +98,19 @@ <h2 id="print">Printed Materials</h2> <ul class="downloads"> - <li><a href="/cobrands/fixmystreet/posters/fixmystreet-poster-a4.pdf"> + <li><a href="/cobrands/fixmystreet/posters/fixmystreet-poster-a4.pdf" onclick="trackGoodieDownload('fixmystreet-poster-a4', '/cobrands/fixmystreet/posters/fixmystreet-poster-a4.zip'); return false;"> <img src="/cobrands/fixmystreet/images/a4-poster.png"> <strong>A4 poster</strong> Ideal for a noticeboard at work, in the library, corner shop… wherever your community will see it. </a></li> - <li><a href="/cobrands/fixmystreet/posters/fixmystreet-flyers-a5.pdf"> + <li><a href="/cobrands/fixmystreet/posters/fixmystreet-flyers-a5.pdf" onclick="trackGoodieDownload('fixmystreet-flyers-a5', '/cobrands/fixmystreet/posters/fixmystreet-flyers-a5.zip'); return false;"> <img src="/cobrands/fixmystreet/images/a5-flyers.png"> <strong>A5 flyers (2 to a sheet)</strong> Perfect for handing out to friends or posting to subscribers. </a></li> - <li><a href="/cobrands/fixmystreet/posters/fixmystreet-flyers-a6.pdf"> + <li><a href="/cobrands/fixmystreet/posters/fixmystreet-flyers-a6.pdf" onclick="trackGoodieDownload('fixmystreet-flyers-a6', '/cobrands/fixmystreet/posters/fixmystreet-flyers-a6.zip'); return false;"> <img src="/cobrands/fixmystreet/images/a6-flyers.png"> <strong>A6 flyers (4 to a sheet)</strong> Great for cafés, pubs, or meetings. </a></li> - <li><a href="/cobrands/fixmystreet/posters/fixmystreet-poop-flags.pdf"> + <li><a href="/cobrands/fixmystreet/posters/fixmystreet-poop-flags.pdf" onclick="trackGoodieDownload('fixmystreet-poop-flags', '/cobrands/fixmystreet/posters/fixmystreet-poop-flags.zip'); return false;"> <img src="/cobrands/fixmystreet/images/dog-poop-flags.png"> <strong>Doggy poop flags (4 to a sheet)</strong> Take a stand against dog-fouling with our home-made flags. Some assembly required! </a></li> @@ -111,15 +121,15 @@ <p>Ideal for promoting FixMyStreet in your community newsletter or local magazine. Specially designed to stand out, and get your message across!</p> <ul class="downloads"> - <li><a href="/cobrands/fixmystreet/posters/fixmystreet-advert-90x130.pdf"> + <li><a href="/cobrands/fixmystreet/posters/fixmystreet-advert-90x130.pdf" onclick="trackGoodieDownload('fixmystreet-advert-90x130', '/cobrands/fixmystreet/posters/fixmystreet-advert-90x130.zip'); return false;"> <img src="/cobrands/fixmystreet/images/advert-90x130.png"> <strong>Quarter page advert</strong> (9cm wide, 13cm high) </a></li> - <li><a href="/cobrands/fixmystreet/posters/fixmystreet-advert-90x60.pdf"> + <li><a href="/cobrands/fixmystreet/posters/fixmystreet-advert-90x60.pdf" onclick="trackGoodieDownload('fixmystreet-advert-90x60', '/cobrands/fixmystreet/posters/fixmystreet-advert-90x60.zip'); return false;"> <img src="/cobrands/fixmystreet/images/advert-90x60.png"> <strong>One-eighth page advert</strong> (9cm wide, 6cm high) </a></li> - <li><a href="/cobrands/fixmystreet/posters/fixmystreet-advert-40x60.pdf"> + <li><a href="/cobrands/fixmystreet/posters/fixmystreet-advert-40x60.pdf" onclick="trackGoodieDownload('fixmystreet-advert-40x60', '/cobrands/fixmystreet/posters/fixmystreet-advert-40x60.zip'); return false;"> <img src="/cobrands/fixmystreet/images/advert-40x60.png"> <strong>One-sixteenth page advert</strong> (4cm wide, 6cm high) </a></li> |