Skip to content

Commit

Permalink
add comments to Google Analytics class
Browse files Browse the repository at this point in the history
  • Loading branch information
niallkennedy committed Dec 11, 2012
1 parent 79719c8 commit 96e3369
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions 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
Expand All @@ -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';
}
Expand Down

0 comments on commit 96e3369

Please sign in to comment.