let dataUser = JSON.parse(localStorage.getItem("abrilAssetsUser")); let abrAdPPID = localStorage.getItem("abrAdPPID"); let statusUsuario = 'não logado'; let nvgPermutive = { gender: '', age: '', education: '', marital: '', income: '', interest: [], cluster: [], custom: [], industry: [], everyone: [], everybuyer: [] } try { let nvgRead = JSON.parse(window.localStorage.getItem("nvgpersona79069")); if (typeof(nvgRead) === 'object') { nvgRead.cluster = ((typeof(nvgRead.cluster) === 'string') ? [nvgRead.cluster] : nvgRead.cluster) || []; if (typeof(nvgRead.product) === 'object') { nvgRead.product.forEach((x) => nvgRead.cluster.push(String(340000+parseInt(x, 10)))); } if (typeof(nvgRead.brand) === 'object') { nvgRead.brand.forEach((x) => nvgRead.cluster.push(String(330000+parseInt(x, 10)))); } nvgPermutive.gender = nvgRead.gender || ''; nvgPermutive.age = nvgRead.age || ''; nvgPermutive.education = nvgRead.education || ''; nvgPermutive.marital = nvgRead.marital || ''; nvgPermutive.income = nvgRead.income || ''; nvgPermutive.interest = ((typeof(nvgRead.interest) === 'string') ? [nvgRead.interest] : nvgRead.interest) || []; nvgPermutive.cluster = nvgRead.cluster; nvgPermutive.custom = ((typeof(nvgRead.custom) === 'string') ? [nvgRead.custom] : nvgRead.custom) || []; nvgPermutive.industry = ((typeof(nvgRead.career) === 'string') ? [nvgRead.career] : nvgRead.career) || []; nvgPermutive.everyone = ((typeof(nvgRead.everyone) === 'string') ? [nvgRead.everyone] : nvgRead.everyone) || []; nvgPermutive.everybuyer = ((typeof(nvgRead.everybuyer) === 'string') ? [nvgRead.everybuyer] : nvgRead.everybuyer) || []; } } catch (e) {} let nvgTags = []; try { nvgTags = JSON.parse('["pesquisa:","lula","perderia","empataria","com","qualquer","bolsonaro","2026","levantamento","instituto","paran\u00e1","pesquisas","considera","cen\u00e1rios","contra","jair","michelle","fl\u00e1vio","eduardo","eduardo","bolsonaro","fl\u00e1vio","bolsonaro","jair","bolsonaro","luiz","in\u00e1cio","lula","silva","michelle","bolsonaro"]'); } catch (e) {} !function(e,o,n,i){if(!e){e=e||{},window.permutive=e,e.q=[];var t=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e){return(e^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)})};e.config=i||{},e.config.apiKey=o,e.config.workspaceId=n,e.config.environment=e.config.environment||"production",(window.crypto||window.msCrypto)&&(e.config.viewId=t());for(var g=["addon","identify","track","trigger","query","segment","segments","ready","on","once","user","consent"],r=0;r 0) { let statusUsuario = 'logado'; } } permutive.identify([ { "id": abrAdPPID, "tag": "abril_id", "priority": 1 } ]); permutive.addon('web',{ "page": { "tipo_pagina" : "blog_post", "status_pagina" : "publish", "autor" : "100058408", "editor" : "", "tags" : nvgTags, "editoria" : "Brasil", "nome_blog" : "Maquiavel", "programa" : "", "oferecimento" : "", "autor_sem_pagina" : "", "autor_com_pagina" : "Redação", "tipo_paywall" : "opened", "status_usuario" : statusUsuario, "palavra_linkada" : "bolsonaro, lula, eduardo bolsonaro", "url_linkada" : "https://veja.abril.com.br/noticias-sobre/jair-bolsonaro/, https://veja.abril.com.br/noticias-sobre/luiz-inacio-lula-da-silva/, https://veja.abril.com.br/noticias-sobre/eduardo-bolsonaro/", "posts_caracteres" : "2039", "navegg": nvgPermutive } }); let idStorage = localStorage.getItem('abrilUserId'); let UnicIdGlobal = null; if ( idStorage ) { if(idData = idStorage.split("|")){ UnicIdGlobal = idData[0]; } } permutive.consent({ "opt_in": true, "token": UnicIdGlobal });