1 | <?php namespace Cornford\Googlitics; |
||
6 | class Analytics extends AnalyticsBase implements AnalyticalInterface { |
||
7 | |||
8 | /** |
||
9 | * Renders and returns Google Analytics code. |
||
10 | * |
||
11 | * @return string |
||
12 | */ |
||
13 | public function render() |
||
35 | |||
36 | /** |
||
37 | * Track a page view. |
||
38 | * |
||
39 | * @param string $page |
||
40 | * @param string $title |
||
41 | * @param string $type |
||
42 | * |
||
43 | * @throws AnalyticsArgumentException |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | public function trackPage($page = null, $title = null, $type = self::TYPE_PAGEVIEW) |
||
63 | |||
64 | /** |
||
65 | * Track a screen view. |
||
66 | * |
||
67 | * @param string $name |
||
68 | * |
||
69 | * @throws AnalyticsArgumentException |
||
70 | * |
||
71 | * @return void |
||
72 | */ |
||
73 | public function trackScreen($name) |
||
78 | |||
79 | /** |
||
80 | * Track an event. |
||
81 | * |
||
82 | * @param string $category |
||
83 | * @param string $action |
||
84 | * @param string $label |
||
85 | * @param integer $value |
||
86 | * |
||
87 | * @return void |
||
88 | */ |
||
89 | public function trackEvent($category, $action, $label = null, $value = null) |
||
97 | |||
98 | /** |
||
99 | * Track a transaction. |
||
100 | * |
||
101 | * @param string $id |
||
102 | * @param array $options (affiliation|revenue|shipping|tax) |
||
103 | * |
||
104 | * @return void |
||
105 | */ |
||
106 | public function trackTransaction($id, array $options = []) |
||
111 | |||
112 | /** |
||
113 | * Track a transaction item. |
||
114 | * |
||
115 | * @param string $id |
||
116 | * @param string $name |
||
117 | * @param array $options (sku|category|price|quantity) |
||
118 | * |
||
119 | * @return void |
||
120 | */ |
||
121 | public function trackItem($id, $name, array $options = []) |
||
127 | |||
128 | /** |
||
129 | * Track a metric. |
||
130 | * |
||
131 | * @param string $category |
||
132 | * @param array $options |
||
133 | * |
||
134 | * @return void |
||
135 | */ |
||
136 | public function trackMetric($category, array $options = []) |
||
147 | |||
148 | /** |
||
149 | * Track an exception. |
||
150 | * |
||
151 | * @param string $description |
||
152 | * @param boolean $fatal |
||
153 | * |
||
154 | * @return void |
||
155 | */ |
||
156 | public function trackException($description = null, $fatal = false) |
||
171 | |||
172 | /** |
||
173 | * Track a custom event. |
||
174 | * |
||
175 | * @param string $item |
||
176 | * |
||
177 | * @return void |
||
178 | */ |
||
179 | public function trackCustom($item) |
||
183 | |||
184 | } |
||
185 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.