Search the Community
Showing results for tags 'google event tracking'.
-
How can I insert the following Google Event Tracking Code: onclick="_gaq.push(['_trackEvent', 'Reservations', 'Image Click', 'Nightly Specials on Homepage']);" Into the following PHP code for each day without running into trouble? <?php date_default_timezone_set('America/Los_Angeles'); $script_tz = date_default_timezone_get(); $today=date(l); if($today==Monday) { echo "<a href='http://goo.gl/UNm8d?lightbox[iframe]=true&lightbox[width]=800&lightbox[height]=470' onclick="_gaq.push(['_trackEvent', 'Reservations', 'Image Click', 'Easter']);" class='lightbox'><img src='wp-content/uploads/2013/02/Half-Price-Wine-Night.png'></a>"; } elseif($today==Tuesday) { echo "<a href='http://goo.gl/UNm8d?lightbox[iframe]=true&lightbox[width]=800&lightbox[height]=470' class='lightbox'><img src='wp-content/uploads/2013/02/Taco-Tuesday.png'></a>"; } elseif($today==Wednesday) { echo "<a href='http://goo.gl/UNm8d?lightbox[iframe]=true&lightbox[width]=800&lightbox[height]=470' class='lightbox'><img src='wp-content/uploads/2013/02/96-Steakhouse-Night.png'></a>"; } elseif($today==Thursday) { echo "<a href='http://goo.gl/UNm8d?lightbox[iframe]=true&lightbox[width]=800&lightbox[height]=470' class='lightbox'><img src='wp-content/uploads/2013/02/Fried-Chicken-Night.png'></a>"; } elseif($today==Friday) { echo "<a href='http://goo.gl/UNm8d?lightbox[iframe]=true&lightbox[width]=800&lightbox[height]=470' class='lightbox'><img src='wp-content/uploads/2013/02/Lobster-Shack.png'></a>"; } elseif($today==Saturday) { echo "<a href='http://goo.gl/UNm8d?lightbox[iframe]=true&lightbox[width]=800&lightbox[height]=470' class='lightbox'><img src='wp-content/uploads/2013/02/French-Bistro-Night.png'></a>"; } elseif($today==Sunday) { echo "<a href='http://goo.gl/UNm8d?lightbox[iframe]=true&lightbox[width]=800&lightbox[height]=470' class='lightbox'><img src='wp-content/uploads/2013/02/Turkey-Dinner-2.png'></a>"; } ?>