diff --git a/gaOpOut.php b/gaOpOut.php index e91db12..f7146a7 100644 --- a/gaOpOut.php +++ b/gaOpOut.php @@ -11,14 +11,35 @@ class gaOpOut { -//gap Id + // view + public $view; + //gap Id public $gaAppId; -//output call event + //output call event public $optOutCallEvent = 'click'; -//element selector with link to jsoutput + //element selector with link to jsoutput public $elementSelector = '[href="#jsgaoptout"]'; - -//Debug default false + //Debug default false public $debug = false; + public $showAlterAfterDeactivate = true; + + public function registerGaOpOut($view, $gaAppId, $optOutCallEvent, $elementSelector, $debug, $showAlterAfterDeactivate) + { + Assets::register($view); + $view->registerJs(" + "); + } } \ No newline at end of file