|
YaWK
24.1
Yet another WebKit
|
Embed Google Analytics on your page. More...
Inheritance diagram for YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics:Public Member Functions | |
| __construct ($db) | |
| Load all widget settings from database and fill object. More... | |
| embed () | |
| init () | |
| Init and embed Google Analytics. More... | |
| printObject () | |
| Print all object data. More... | |
Public Member Functions inherited from YAWK\widget | |
| getHeading ($heading, $subtext) | |
| Get widget heading and subtext, return headline. More... | |
| getWidgetSettingsArray ($db) | |
| Get widget settings and return it as array. More... | |
Public Attributes | |
| $gaTrackingCode = '' | |
| $gaTrackingID = '' | |
| $widget = '' | |
Public Attributes inherited from YAWK\widget | |
| $data | |
| $date_publish | |
| $date_unpublish | |
| $folder | |
| $id | |
| $marginBottom | |
| $marginTop | |
| $name | |
| $pageID | |
| $position | |
| $published | |
| $sort | |
| $widgetTitle | |
| $widgetType | |
Additional Inherited Members | |
Static Public Member Functions inherited from YAWK\widget | |
| static | getAllSettingsIntoArray ($db, $widgetID) |
| Returns an array with all widget settings data. More... | |
| static | getAllWidgetTypes ($db) |
| Return all widget types as associative array. More... | |
| static | getCurrentWidgetPath ($db) |
| return current widget path More... | |
| static | getFacebookLikeBox () |
| return the facebook likebox widget More... | |
| static | getLoginBox () |
| return the user login box widget More... | |
| static | loadWidgetsOfPage ($db, $page) |
| Returns an array of all widgets that are linked with given page->id. More... | |
Embed Google Analytics on your page.
Google Analytics Widget - Embed Google Analytics on your page
If you need to track your users with google analytics, you can use this widget. It requires a tracking ID and allows a few settings. In order to work properly, it is required to embed this widget on 'all pages' in any position that is not used by anything else. A recommended position would be debug or any other empty position.
Definition at line 17 of file googleAnalytics.php.
| YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics::__construct | ( | $db | ) |
Load all widget settings from database and fill object.
| object | $db | Database Object |
Load all widget settings on object init.
Definition at line 31 of file googleAnalytics.php.
References $db, YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics\$gaTrackingCode, $settings, $value, and YAWK\widget\getWidgetSettingsArray().
| YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics::embed | ( | ) |
Definition at line 62 of file googleAnalytics.php.
Referenced by YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics\init().
| YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics::init | ( | ) |
Init and embed Google Analytics.
Embed Google Analytics
Definition at line 57 of file googleAnalytics.php.
References YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics\embed().
| YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics::printObject | ( | ) |
Print all object data.
(for development and testing purpose)
Reimplemented from YAWK\widget.
Definition at line 46 of file googleAnalytics.php.
| YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics::$gaTrackingCode = '' |
| string | Tracking Code |
Definition at line 24 of file googleAnalytics.php.
Referenced by YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics\__construct().
| YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics::$gaTrackingID = '' |
| string | Tracking ID |
Definition at line 22 of file googleAnalytics.php.
| YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics::$widget = '' |
| object | global widget object data |
Definition at line 20 of file googleAnalytics.php.