Changeset 118972
- Timestamp:
- 05/19/2009 08:52:39 PM (17 years ago)
- Location:
- wp-analytics/trunk
- Files:
-
- 3 edited
-
analytics-report.php (modified) (4 diffs)
-
analytics.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-analytics/trunk/analytics-report.php
r118331 r118972 54 54 $script = ''; 55 55 foreach ( $mapRecords ['entry'] as $record ) { 56 $script .= "gaData.setValue({$row}, 0, \" {$record['dimension']['ga:country']}\" );gaData.setValue({$row}, 1, {$record['metric']['ga:visits']});";56 $script .= "gaData.setValue({$row}, 0, \"".js_escape($record['dimension']['ga:country'])."\" );gaData.setValue({$row}, 1, {$record['metric']['ga:visits']});"; 57 57 $row ++; 58 58 } … … 80 80 $script = ''; 81 81 foreach ( $keywordsRecords ['entry'] as $record ) { 82 $script .= "gaData.setValue({$row}, 0, \" {$record['dimension']['ga:keyword']}\" );gaData.setValue({$row}, 1, {$record['metric']['ga:visits']});";82 $script .= "gaData.setValue({$row}, 0, \"".js_escape($record['dimension']['ga:keyword'])."\" );gaData.setValue({$row}, 1, {$record['metric']['ga:visits']});"; 83 83 $row ++; 84 84 } … … 103 103 $script = ''; 104 104 foreach ( $sourceRecords ['entry'] as $record ) { 105 $script .= "gaData.setValue({$row}, 0, \" {$record['dimension']['ga:source']}\" );gaData.setValue({$row}, 1, {$record['metric']['ga:visits']});";105 $script .= "gaData.setValue({$row}, 0, \"".js_escape($record['dimension']['ga:source'])."\" );gaData.setValue({$row}, 1, {$record['metric']['ga:visits']});"; 106 106 $row ++; 107 107 } … … 126 126 $script = ''; 127 127 foreach ( $browserRecords ['entry'] as $record ) { 128 $script .= "gaData.setValue({$row}, 0, \" {$record['dimension']['ga:browser']}\" );gaData.setValue({$row}, 1, {$record['metric']['ga:visits']});";128 $script .= "gaData.setValue({$row}, 0, \"".js_escape($record['dimension']['ga:browser'])."\" );gaData.setValue({$row}, 1, {$record['metric']['ga:visits']});"; 129 129 $row ++; 130 130 } -
wp-analytics/trunk/analytics.php
r118407 r118972 5 5 Description: This plugin helps to get Google Analytics reports overview to your dashboard using Google Analytics Data API. 6 6 Author: Imthiaz Rafiq 7 Version: 1.0. 47 Version: 1.0.5 8 8 Author URI: http://imthi.com/ 9 9 */ -
wp-analytics/trunk/readme.txt
r118407 r118972 5 5 Requires at least: 2.7.1 6 6 Tested up to: 2.7.1 7 Stable tag: 1.0. 47 Stable tag: 1.0.5 8 8 9 9 == Description == … … 36 36 == Changelog == 37 37 38 = Version: 1.0.3 Dated: 16-May-2009 = 38 = Version: 1.0.5 Dated: 20-May-2009 = 39 * Added js_escape to all strings printed in the javascript. 40 41 = Version: 1.0.4 Dated: 16-May-2009 = 39 42 * Removed CURLOPT_FOLLOWLOCATION due to limitation on safe mode 40 43
Note: See TracChangeset
for help on using the changeset viewer.