]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Fix GA event tracking code
authorEric Morris <eric@zurb.com>
Thu, 7 Nov 2013 05:34:30 +0000 (21:34 -0800)
committerEric Morris <eric@zurb.com>
Thu, 7 Nov 2013 05:34:30 +0000 (21:34 -0800)
download.php
templates.php

index c4811a5fcd33dd5c8a6a1e2d6b397095d6ef52dc..d7cfa2b20382f2830d60d80d5756a894accdca47 100644 (file)
@@ -4,7 +4,7 @@
 <?php include 'includes/_top-bar.php' ?>
 
 <script>
-  ga('send', 'Ink', 'Download', '<?php echo $download_file; ?>');
+  ga('send', 'event', 'Ink', 'Download', '<?php echo $download_file; ?>');
 </script>
 
 <section class="top-area main downloading">
index e4fb9eadb571025120cb4ddc5343bc206f9d4960..e6d6447fe8876837b545e2b51ec6591c861db4e9 100644 (file)
@@ -40,7 +40,7 @@
 <div class="row">
   <div class="small-12 columns">
     <h5 class="normal">You can download all of the templates in one file here:</h6>
-    <a href="downloads/templates/all-templates.zip" class="button primary" onClick="ga.('send', 'Ink', 'Download', 'templates/all.zip');">All Ink Templates</a>
+    <a href="downloads/templates/all-templates.zip" class="button primary" onClick="ga('send', 'event', 'Ink', 'Download', 'templates/all.zip');">All Ink Templates</a>
     <br><br>
     <ul class="large-block-grid-3 small-block-grid-1 template-thumbs">
       <li>
@@ -49,7 +49,7 @@
         </a>
         <h6 class="name"><span>Basic</span> <a href="">View Tests</a></h6>
         <span class="description">This template is perfect for sending a basic but nice looking email to your readers.</span>
-        <a href="downloads/templates/basic.html.zip" class="button primary" onClick="ga.('send', 'Ink', 'Download', 'templates/basic.html.zip');">Download</a>
+        <a href="downloads/templates/basic.html.zip" class="button primary" onClick="ga('send', 'event', 'Ink', 'Download', 'templates/basic.html.zip');">Download</a>
         <a href="downloads/templates/basic.html" class="button secondary" target="_blank">Preview</a>
       </li>
       <li>
@@ -58,7 +58,7 @@
         </a>
         <h6 class="name"><span>Hero</span> <a href="">View Tests</a></h6>
         <span class="description">Want to include a snazzy hero image in your email? This template is for you!</span>
-        <a href="downloads/templates/hero.html.zip" class="button primary" onClick="ga.('send', 'Ink', 'Download', 'templates/hero.html.zip');">Download</a>
+        <a href="downloads/templates/hero.html.zip" class="button primary" onClick="ga('send', 'event', 'Ink', 'Download', 'templates/hero.html.zip');">Download</a>
         <a href="downloads/templates/hero.html" class="button secondary" target="_blank">Preview</a>
       </li>
       <li>
@@ -67,7 +67,7 @@
         </a>
         <h6 class="name"><span>Sidebar</span> <a href="">View Tests</a></h6>
         <span class="description">This template includes a sidebar area for a list of links, perfect for linking to additional content.</span>
-        <a href="downloads/templates/sidebar.html.zip" class="button primary" onClick="ga.('send', 'Ink', 'Download', 'templates/sidebar.html.zip');">Download</a>
+        <a href="downloads/templates/sidebar.html.zip" class="button primary" onClick="ga('send', 'event', 'Ink', 'Download', 'templates/sidebar.html.zip');">Download</a>
         <a href="downloads/templates/sidebar.html" class="button secondary" target="_blank">Preview</a>
       </li>
       <li>
@@ -76,7 +76,7 @@
         </a>
         <h6 class="name"><span>Sidebar Hero</span> <a href="">View Tests</a></h6>
         <span class="description">Want a sidebar and a hero image? Let's go crazy! This template combines the Sidebar and Hero templates.</span>
-        <a href="downloads/templates/sidebar-hero.html.zip" class="button primary" onClick="ga.('send', 'Ink', 'Download', 'templates/sidebar-hero.html.zip');">Download</a>
+        <a href="downloads/templates/sidebar-hero.html.zip" class="button primary" onClick="ga('send', 'event', 'Ink', 'Download', 'templates/sidebar-hero.html.zip');">Download</a>
         <a href="downloads/templates/sidebar-hero.html" class="button secondary" target="_blank">Preview</a>
       </li>
       <li>
@@ -85,7 +85,7 @@
         </a>
         <h6 class="name"><span>Newsletter</span> <a href="">View Tests</a></h6>
         <span class="description">This template is perfect for a point-by-point newsletter. For good measure, we've thrown in a hero image, too.</span>
-        <a href="downloads/templates/newsletter.html.zip" class="button primary" onClick="ga.('send', 'Ink', 'Download', 'templates/newsletter.html.zip');">Download</a>
+        <a href="downloads/templates/newsletter.html.zip" class="button primary" onClick="ga('send', 'event', 'Ink', 'Download', 'templates/newsletter.html.zip');">Download</a>
         <a href="downloads/templates/newsletter.html" class="button secondary" target="_blank">Preview</a>
       </li>
     </ul>