image image

Introduce your Birth Date

Seleziona un paese

clear
array ( 'pageerror' => "", 'domainreferer' => ($_SERVER['HTTP_REFERER'] ?? ''), 'language' => Session::get ('rainlab.translate.locale'), 'agefilter' => true, 'languages' => Session::get('rainlab.translate.locale'), 'contentcategory' => 'momentos-alhambra', 'crossdomainbrand' => 'alhambra', 'host' => 'cervezasalhambra.com', 'pagecanonical' => $this->pageUrl(''), 'pagecategorization' => 'momentos-alhambra>detalles-producto', 'pagecategory' => 'crearsinprisa', 'pagesubcategory' => 'obras', 'pagetitle' => $this->page->title, 'pagetype' => 'detalle obra', 'pageurl' => $this->pageUrl(''), 'pagepath' => $this->page->url, 'protocol' => "", 'userKruxId ' => '', 'userKruxAllSegments' => '' ), 'navigator' => array ( 'navigatorlanguage' => "", 'appcodename' => '', 'appname' => '', 'appversion' => '', 'cookieenabled' => true, ), 'Screen' => array ( 'availheight' => '', 'availwidth' => '', 'colordepth' => '', 'height' => '', 'width' => '', 'screenangle' => '', 'screenoncharge' => '', 'screentype' => '' ), 'userinfo' => array ( 'usercity' => '', 'kruxid' => '', 'userclientid' => isset( $_COOKIE['_ga'] ) ? substr( $_COOKIE['_ga'], -20) : '', 'usercontentbehaviour' => '', 'userdevice' => '', 'userregion' => '', 'kruxallsegments' => '', 'userip' => '', 'userlogin' => isset($_COOKIE['userLogin']) ? true : false, 'userpagesvisited' => '', 'userprovince' => '', 'userreturningvisitor' => true ), 'clientinfo' => array ( 'clientcity' => "", 'clientpostalcode' => "", 'clientprovince' => "", 'clientstate' => "", 'clientage' => ((!empty ($userData['fechaNacimiento'])) ? DateTime::createFromFormat('d/m/Y', $userData['fechaNacimiento'])->diff(new DateTime())->y : ''), 'clientcustomerid' => ($userData['idContacto'] ?? ''), 'clienthashedemail' => ((!empty ($userData['email'])) ? md5 ($userData['email']) : ''), 'clientInterest' => '' ), 'contentinfo' => array ( 'contentcategory' => 'momentos-alhambra', 'contentsubcategory' => 'obras', 'contenttitle' => $this->page->title, 'contenttype' => '' ), 'datautm' => array ( 'utmcontent' => ($_GET['utm_content'] ?? ''), 'utmmedium' => ($_GET['utm_medium'] ?? ''), 'utmcampaign' => ($_GET['utm_campaign'] ?? ''), 'utmsource' => ($_GET['utm_source'] ?? ''), 'utmterm' => ($_GET['utm_term'] ?? '') ), 'productinfo' => array ( 'productbrand' => 'alhambra', 'productname' => '', 'productrange' => '', 'productsegment' => '', 'producttype' => '' ), 'promotionsName' => '', 'outbound_url' => '' )); $dataLayer[0]['clientinfo']['clientcustomerid'] = $_COOKIE['clientCustomerId'] ?? ''; $dataLayer[0]['clientinfo']['clienthashedemail'] = $_COOKIE['clientHashedEmail'] ?? ''; $dataLayer[0]['clientinfo']['userlogin'] = isset($_COOKIE['userLogin']) ? true : false; $interesDefault = "gastronomia"; $dataLayer[0]['navegacion']['contentcategorymsm'] = $interesDefault; $interesMSM = Session::get ('interesmsm'); if(null == $interesMSM){ $interesMSM = $interesDefault; } if($interesMSM && strlen($interesMSM)>0){ $interesMSM = $interesMSM != "" ? $interesMSM.','.$interesDefault : $interesMSM ?? ""; Session::put ('interesmsm',$interesMSM); } $dataLayer[0]['navegacion']['interesmsm'] = $interesMSM; $this['dataLayer'] = json_encode ($dataLayer); } ?>