Jump to content

Search the Community

Showing results for tags 'event tracking'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. 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>"; } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.