Completed
Push — add/8181-enhanced-google-analy... ( 492986...fd7aed )
by
unknown
36:24 queued 28:55
created

Jetpack_Google_Analytics_Universal   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A insert_code() 0 3 1
1
<?php
2
3
/**
4
* Jetpack_Google_Analytics_Universal hooks and and enqueues support for analytics.js
5
* https://developers.google.com/analytics/devguides/collection/analyticsjs/
6
*
7
* @author allendav 
8
*/
9
10
/**
11
* Bail if accessed directly
12
*/
13
if ( ! defined( 'ABSPATH' ) ) {
14
	exit;
15
}
16
17
class Jetpack_Google_Analytics_Universal {
18
	public function __construct() {
19
		// TODO add_filter( 'jetpack_wga_classic_custom_vars', array( $this, 'jetpack_wga_classic_anonymize_ip' ) );
0 ignored issues
show
Coding Style Best Practice introduced by
Comments for TODO tasks are often forgotten in the code; it might be better to use a dedicated issue tracker.
Loading history...
20
		// TODO add_filter( 'jetpack_wga_classic_custom_vars', array( $this, 'jetpack_wga_classic_track_purchases' ) );
0 ignored issues
show
Coding Style Best Practice introduced by
Comments for TODO tasks are often forgotten in the code; it might be better to use a dedicated issue tracker.
Loading history...
21
		// TODO add_action( 'wp_footer', array( $this, 'insert_code' ) );
0 ignored issues
show
Coding Style Best Practice introduced by
Comments for TODO tasks are often forgotten in the code; it might be better to use a dedicated issue tracker.
Loading history...
22
		// TODO add_action( 'wp_footer', array( $this, 'jetpack_wga_classic_track_add_to_cart' ) );
0 ignored issues
show
Coding Style Best Practice introduced by
Comments for TODO tasks are often forgotten in the code; it might be better to use a dedicated issue tracker.
Loading history...
23
	}
24
25
	public function insert_code() {
26
27
	}
28
}