Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #348 from niallkennedy/gajs-comment

add comments to Google Analytics class
  • Loading branch information...
commit cf681eece982f621a2a26211b386200da1425af1 2 parents 79719c8 + 96e3369
@niallkennedy niallkennedy authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 extras/google-analytics.php
View
14 extras/google-analytics.php
@@ -1,4 +1,12 @@
<?php
+
+/**
+ * Support for Google Analytics Social Interaction Analytics
+ * Queues Facebook-specific calls to the _trackSocial method via the _gaq queue
+ *
+ * @since 1.1.9
+ * @link https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSocial Google Analytics Social Interaction Analytics
+ */
class Facebook_Google_Analytics {
/**
* Handle used in WordPress script queue
@@ -18,6 +26,12 @@ public static function add_to_queue() {
return 'if(FB_WP.queue && FB_WP.queue.add){FB_WP.queue.add(function(){FB_WP.extras.analytics.google.init()})}';
}
+ /**
+ * Relative path to Facebook Google Analytics JavaScript file
+ *
+ * @since 1.1.9
+ * @return string file path relative to the plugin directory
+ */
public static function javascript_file_path() {
return 'static/js/extras/analytics/google-analytics' . ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min' ) . '.js';
}
Please sign in to comment.
Something went wrong with that request. Please try again.