Plugin Directory

Changeset 913961


Ignore:
Timestamp:
05/14/2014 03:34:11 PM (12 years ago)
Author:
project107
Message:

Init commit of V2 from SVN

Location:
ga-link-tracker/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ga-link-tracker/trunk/GA-Link-Tracker.php

    r694565 r913961  
    33Plugin Name: GA Link Tracker
    44Plugin URI: http://project107.net/GA-Link-Tracker
    5 Description: A WP Plugin to automagically add code to href's to track as events in Google Analytics. That's it.
    6 Version: 1.0
     5Description: A WP Plugin to automagically add code to href's to track as events in Google Analytics. That's it. v2 uses analyics.js NOT ga.js
     6Version: 2.0
    77Author: PROJECT107
    88Author URI: http://project107.net
     
    3232        $result = $regs[1];
    3333        $needle = "<a";
    34         $content = str_replace($needle, "<a onclick=\"javascript:_gaq.push(['_trackEvent', 'Links', 'PageID: ". $_SERVER["REQUEST_URI"] ." ', '$result']);\"", $content);
     34        $content = str_replace($needle, "<a onclick='ga('send', 'event', 'Links', 'click', '". $result ."');' ", $content);
    3535    }
    3636    return $content;
  • ga-link-tracker/trunk/readme.txt

    r694565 r913961  
    4242
    4343== Changelog ==
    44 
     44v2.0 - Updated to use Google's newer analyitcs.js file
    4545v1.0 - Initial release.
    4646
Note: See TracChangeset for help on using the changeset viewer.