{
"adagio": {
"content": "",
"type": "text/plain",
"class": "_iub_cs_activate-inline",
"data": {
"iub-purposes": "1"
}
},
"webtrakk": {
"content": "var webtrakkDrtData = {\"webtrakkPage\":\"LISTING\",\"webtrakkAction\":\"\",\"webtrakkMacro\":\"MOTO\",\"v1\":\"privato.\",\"v2\":\"invia.\",\"v3\":null,\"v4\":\"organico.\",\"v5\":null,\"ad\":\"\",\"id_ad\":\"\",\"status\":\"\",\"destve\":\"\",\"desmar\":\"\",\"desmod\":\"\",\"desall\":\"\",\"descmo\":\"\",\"id_prov\":\"\",\"price\":\"\",\"year\":\"\",\"sellerType\":\"privato\",\"cp56\":\"INFOBIKE;35;3051;;;;\",\"custom_parameter\":\"DRT_USATO_ALTRO\",\"user_check\":\"non_loggato\",\"cp23\":true,\"customerId\":\"\"};\n\n //WEBTRAKK functions\n function getContentIdByURL(page) {\n var url = document.location.href;\n if (url && url !== null) {\n url = url.split(\"?\")[0].toLowerCase();\n if (page === 'ad-gallery') {\n url = url + '.gallery';\n }\n return url;\n }\n return \"no_content\";\n };\n\n function getRefDomainByName(name) {\n var match = RegExp(name).exec(document.referrer);\n if (match)\n return name;\n else\n return 'not-from-google';\n }\n\n //WEBTRAKK pageConfig\n var pageConfig = {\n linkTrack: \"link\",\n heatmap: \"0\",\n form: \"\",\n contentId: getContentIdByURL()\n };\n\n var wt = new webtrekkV3(pageConfig);\n\n wt.heatmapRefpoint = \"wt_refpoint\";\n\n if(webtrakkDrtData.criteoSession !== '' && webtrakkDrtData.criteoSession === 'criteo-in-master'){\n window.webtrekk_funcs.trackWebtrekkEvent(\"Qusato.lead.\" + webtrakkDrtData.v1 + webtrakkDrtData.v2 + webtrakkDrtData.v3 + webtrakkDrtData.v4 + webtrakkDrtData.v5);\n }\n\n //WEBTRAKK cg contentGroup\n wt.contentGroup = {\n 1: \"Edidomus\",\n 2: \"dueruote.it\",\n 3: \"USATO\",\n 4: webtrakkDrtData.webtrakkPage\n };\n\n if(webtrakkDrtData.webtrakkAction !== \"\") {\n wt.contentGroup.push({5: webtrakkDrtData.webtrakkAction});\n }\n\n //WEBTRAKK cp customParameter\n wt.customParameter = {\n 4: \"MOTO \" + webtrakkDrtData.status,\n 5: webtrakkDrtData.destve,\n 6: webtrakkDrtData.desmar,\n 7: webtrakkDrtData.desmod,\n 8: webtrakkDrtData.desall,\n 13: webtrakkDrtData.descmo,\n 14: webtrakkDrtData.id_prov,\n 15: webtrakkDrtData.user_check,\n 16: webtrakkDrtData.price,\n 18: webtrakkDrtData.year,\n 19: webtrakkDrtData.webtrakkMacro,\n 20: webtrakkDrtData.sellerType,\n 21: webtrakkDrtData.id_ad\n };\n\n if(webtrakkDrtData.cp23){\n wt.customParameter[23] = webtrakkDrtData.custom_parameter;\n } else {\n wt.customParameter[23] = \"NO_ADV\";\n }\n\n if(webtrakkDrtData.cp47 !== \"\"){\n wt.customParameter[47] = webtrakkDrtData.cp47;\n }\n\n var url = new URLSearchParams(window.location.search);\n var comeFromParam = url.get('comeFrom');\n\n if(comeFromParam !== null){\n wt.customParameter[42] = comeFromParam;\n }\n\n //WEBTRAKK customerId\n if(webtrakkDrtData.customerId !== \"\"){\n wt.customerId = webtrakkDrtData.customerId;\n }\n\n //WEBTRAKK customSessionParameter\n var search_source;\n var came_from;\n\n came_from = getRefDomainByName(\"google\");\n\n if (came_from == 'google') {\n search_source = wt.urlParam(document.referrer, \"source\");\n } else if (came_from == \"not-from-google\") {\n search_source = \"not-from-google\";\n }\n\n wt.customSessionParameter = { 1: search_source };\n\n\n /* CP56 | DRTUSA-139 */\n if(webtrakkDrtData['cp56']){\n wt.customParameter['56'] = webtrakkDrtData['cp56'];\n }\n\n /*\n *\n * Sending data\n *\n */\n\n //WEBTRAKK sendWebtrekkEvents\n window.webtrekk_funcs.sendWebtrekkEvents();\n\n if (webtrakkDrtData.webtrakkPage != 'SCHEDA ANNUNCIO'){\n wt.sendinfo();\n }\n\n if(document.getElementById(\"webtrakk-facile\")) {\n window.webtrekk_funcs.trackWebtrekkEvent('finanziamento.usato.imps');\n }\n",
"type": "text/javascript"
},
"criteo": {
"content": "var criteoDrtData = {\"device\":\"d\",\"event\":\"viewList\",\"list\":\"\\u0022\\u0022\",\"id_ad\":\"\",\"email\":\"\",\"transaction_id\":\"\",\"price\":\"\"};\n\n window.criteo_q = window.criteo_q || [];\n\n var additionalEvent = {\n event: criteoDrtData.event\n };\n\n if(criteoDrtData.list !== \"\") {\n additionalEvent.item = criteoDrtData.list;\n } else if(criteoDrtData.id_ad !== \"\") {\n additionalEvent.item = criteoDrtData.id_ad;\n }\n\n window.criteo_q.push(\n { event: \"setAccount\", account: 83693 },\n { event: \"setSiteType\", type: criteoDrtData.device },\n { event: \"setEmail\", email: criteoDrtData.email },\n additionalEvent\n );\n\n if ($('#detail-start').length > 0) {\n var observer = new MutationObserver(function () {\n if ($('.lead-form-message.verde').length > 0) {\n additionalEvent.event = 'Product';\n window.criteo_q.push(\n { event: \"setAccount\", account: 83693 },\n additionalEvent\n );\n\n observer.disconnect();\n }\n });\n\n observer.observe(\n document.querySelector('#lead-form-cont'),\n {\n attributes: true,\n childList: true,\n subtree: true,\n characterData: true\n }\n );\n };\n\n $(document).on('submit','form.lead-form',function(){\n\n let d = new Date();\n let yr = d.getYear();\n let month = d.getMonth();\n let day = d.getDate();\n let hr = d.getHours();\n let min = d.getMinutes();\n let sec = d.getSeconds();\n\n let now = day+''+(month+1)+''+yr+''+hr+''+min+''+sec;\n\n let mail = $(this).find('.leadFormMail').val();\n\n var transactionId = criteoDrtData.id_ad+'_'+now;\n\n var addTrackTransactionEvent = {\n event: 'trackTransaction',\n id: transactionId,\n item: [{\n id: criteoDrtData.id_ad,\n price: criteoDrtData.price,\n quantity: 1,\n }]\n };\n\n window.criteo_q.push(\n { event: \"setAccount\", account: 83693 },\n { event: \"setSiteType\", type: criteoDrtData.device },\n { event: \"setEmail\", email: mail },\n addTrackTransactionEvent\n );\n });\n",
"type": "text/javascript"
},
"google": {
"content": "var googleDrtData = {\"webtrakkPage\":\"LISTING\",\"webtrakkAction\":\"\",\"webtrakkMacro\":\"MOTO\",\"v1\":\"privato.\",\"v2\":\"invia.\",\"v3\":null,\"v4\":\"organico.\",\"v5\":null,\"ad\":\"\",\"id_ad\":\"\",\"status\":\"\",\"destve\":\"\",\"desmar\":\"\",\"desmod\":\"\",\"desall\":\"\",\"descmo\":\"\",\"id_prov\":\"\",\"price\":\"\",\"year\":\"\",\"sellerType\":\"privato\",\"cp56\":\"INFOBIKE;35;3051;;;;\",\"custom_parameter\":\"DRT_USATO_ALTRO\",\"user_check\":\"non_loggato\",\"cp23\":true,\"customerId\":\"\"};\n\n // Google Tag Manager\n dataLayer = window.dataLayer || [];\n\n function pushDataLayer(event, g) {\n var url = getContentIdByURL();\n\n if(event === 'scrollGallery'){\n url = getContentIdByURL('ad-gallery');\n }\n\n dataLayerConstructor = {\n 'url': url,\n 'event': event,\n 'contentGroup1':'EdiDomus',\n 'contentGroup2':'dueruote.it',\n 'contentGroup3':'USATO',\n };\n\n if (typeof googleDrtData.user_check !== 'undefined' && googleDrtData.user_check !== null) {\n if(googleDrtData.user_check == 'non_loggato'){\n dataLayerConstructor.loginStatus = 'non-loggato';\n }\n else{\n dataLayerConstructor.loginStatus = 'loggato';\n }\n }\n\n if(googleDrtData.webtrakkAction !== \"\")\n dataLayerConstructor.contentGroup5 = googleDrtData.webtrakkAction;\n\n dataLayer.push(dataLayerConstructor);\n }\n\n pushDataLayer('pageview', wt);\n",
"type": "text/javascript"
},
"tag-selligent": {
"content": "var value = `; ${document.cookie}`;\nvar parts = value.split(`; ${'CUID'}=`);\n if (parts.length === 2) \n var cuid = parts.pop().split(';').shift();\n \n console.log('CUID',cuid);\n \n if (cuid !== undefined){\n wa.bt_queue.push({\"customIdentifier\": cuid}); \n document.cookie = 'CUID=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';\n }\n \n var tagValues = new Array();\n\n var tagValue = new Object();\n tagValue.tag=\"hierarchy\";\n tagValue.value=\"dueruote.it_USATO_LISTING\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"properties\";\n tagValue.value=\"dueruote.it\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"section\";\n tagValue.value=\"USATO\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"subsection\";\n tagValue.value=\"LISTING\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"contentType\";\n tagValue.value=\"ALTRO\";\n tagValues.push(tagValue);\n\n\n tagValue = new Object();\n tagValue.tag=\"brand\";\n tagValue.value=\"\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"model\";\n tagValue.value=\"\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"searchPar\";\n tagValue.value=\"{"marca":"sym","modello":"nh-xcion-125","page":"1"}\";\n tagValues.push(tagValue);\n\n \n\n\n wa.bt_queue.push({\n \"isEvent\": false,\n \"isTargeting\": true,\n \"async\": true,\n \"tagValues\": tagValues\n }); \n ",
"type": "text/javascript"
}
}
{
"adagio": {
"content": "",
"type": "text/plain",
"class": "_iub_cs_activate-inline",
"data": {
"iub-purposes": "1"
}
},
"webtrakk": {
"content": "var webtrakkDrtData = {\"webtrakkPage\":\"LISTING\",\"webtrakkAction\":\"\",\"webtrakkMacro\":\"MOTO\",\"v1\":\"privato.\",\"v2\":\"invia.\",\"v3\":null,\"v4\":\"organico.\",\"v5\":null,\"ad\":\"\",\"id_ad\":\"\",\"status\":\"\",\"destve\":\"\",\"desmar\":\"\",\"desmod\":\"\",\"desall\":\"\",\"descmo\":\"\",\"id_prov\":\"\",\"price\":\"\",\"year\":\"\",\"sellerType\":\"privato\",\"cp56\":\"INFOBIKE;35;3051;;;;\",\"custom_parameter\":\"DRT_USATO_ALTRO\",\"user_check\":\"non_loggato\",\"cp23\":true,\"customerId\":\"\"};\n\n //WEBTRAKK functions\n function getContentIdByURL(page) {\n var url = document.location.href;\n if (url && url !== null) {\n url = url.split(\"?\")[0].toLowerCase();\n if (page === 'ad-gallery') {\n url = url + '.gallery';\n }\n return url;\n }\n return \"no_content\";\n };\n\n function getRefDomainByName(name) {\n var match = RegExp(name).exec(document.referrer);\n if (match)\n return name;\n else\n return 'not-from-google';\n }\n\n //WEBTRAKK pageConfig\n var pageConfig = {\n linkTrack: \"link\",\n heatmap: \"0\",\n form: \"\",\n contentId: getContentIdByURL()\n };\n\n var wt = new webtrekkV3(pageConfig);\n\n wt.heatmapRefpoint = \"wt_refpoint\";\n\n if(webtrakkDrtData.criteoSession !== '' && webtrakkDrtData.criteoSession === 'criteo-in-master'){\n window.webtrekk_funcs.trackWebtrekkEvent(\"Qusato.lead.\" + webtrakkDrtData.v1 + webtrakkDrtData.v2 + webtrakkDrtData.v3 + webtrakkDrtData.v4 + webtrakkDrtData.v5);\n }\n\n //WEBTRAKK cg contentGroup\n wt.contentGroup = {\n 1: \"Edidomus\",\n 2: \"dueruote.it\",\n 3: \"USATO\",\n 4: webtrakkDrtData.webtrakkPage\n };\n\n if(webtrakkDrtData.webtrakkAction !== \"\") {\n wt.contentGroup.push({5: webtrakkDrtData.webtrakkAction});\n }\n\n //WEBTRAKK cp customParameter\n wt.customParameter = {\n 4: \"MOTO \" + webtrakkDrtData.status,\n 5: webtrakkDrtData.destve,\n 6: webtrakkDrtData.desmar,\n 7: webtrakkDrtData.desmod,\n 8: webtrakkDrtData.desall,\n 13: webtrakkDrtData.descmo,\n 14: webtrakkDrtData.id_prov,\n 15: webtrakkDrtData.user_check,\n 16: webtrakkDrtData.price,\n 18: webtrakkDrtData.year,\n 19: webtrakkDrtData.webtrakkMacro,\n 20: webtrakkDrtData.sellerType,\n 21: webtrakkDrtData.id_ad\n };\n\n if(webtrakkDrtData.cp23){\n wt.customParameter[23] = webtrakkDrtData.custom_parameter;\n } else {\n wt.customParameter[23] = \"NO_ADV\";\n }\n\n if(webtrakkDrtData.cp47 !== \"\"){\n wt.customParameter[47] = webtrakkDrtData.cp47;\n }\n\n var url = new URLSearchParams(window.location.search);\n var comeFromParam = url.get('comeFrom');\n\n if(comeFromParam !== null){\n wt.customParameter[42] = comeFromParam;\n }\n\n //WEBTRAKK customerId\n if(webtrakkDrtData.customerId !== \"\"){\n wt.customerId = webtrakkDrtData.customerId;\n }\n\n //WEBTRAKK customSessionParameter\n var search_source;\n var came_from;\n\n came_from = getRefDomainByName(\"google\");\n\n if (came_from == 'google') {\n search_source = wt.urlParam(document.referrer, \"source\");\n } else if (came_from == \"not-from-google\") {\n search_source = \"not-from-google\";\n }\n\n wt.customSessionParameter = { 1: search_source };\n\n\n /* CP56 | DRTUSA-139 */\n if(webtrakkDrtData['cp56']){\n wt.customParameter['56'] = webtrakkDrtData['cp56'];\n }\n\n /*\n *\n * Sending data\n *\n */\n\n //WEBTRAKK sendWebtrekkEvents\n window.webtrekk_funcs.sendWebtrekkEvents();\n\n if (webtrakkDrtData.webtrakkPage != 'SCHEDA ANNUNCIO'){\n wt.sendinfo();\n }\n\n if(document.getElementById(\"webtrakk-facile\")) {\n window.webtrekk_funcs.trackWebtrekkEvent('finanziamento.usato.imps');\n }\n",
"type": "text/javascript"
},
"criteo": {
"content": "var criteoDrtData = {\"device\":\"d\",\"event\":\"viewList\",\"list\":\"\\u0022\\u0022\",\"id_ad\":\"\",\"email\":\"\",\"transaction_id\":\"\",\"price\":\"\"};\n\n window.criteo_q = window.criteo_q || [];\n\n var additionalEvent = {\n event: criteoDrtData.event\n };\n\n if(criteoDrtData.list !== \"\") {\n additionalEvent.item = criteoDrtData.list;\n } else if(criteoDrtData.id_ad !== \"\") {\n additionalEvent.item = criteoDrtData.id_ad;\n }\n\n window.criteo_q.push(\n { event: \"setAccount\", account: 83693 },\n { event: \"setSiteType\", type: criteoDrtData.device },\n { event: \"setEmail\", email: criteoDrtData.email },\n additionalEvent\n );\n\n if ($('#detail-start').length > 0) {\n var observer = new MutationObserver(function () {\n if ($('.lead-form-message.verde').length > 0) {\n additionalEvent.event = 'Product';\n window.criteo_q.push(\n { event: \"setAccount\", account: 83693 },\n additionalEvent\n );\n\n observer.disconnect();\n }\n });\n\n observer.observe(\n document.querySelector('#lead-form-cont'),\n {\n attributes: true,\n childList: true,\n subtree: true,\n characterData: true\n }\n );\n };\n\n $(document).on('submit','form.lead-form',function(){\n\n let d = new Date();\n let yr = d.getYear();\n let month = d.getMonth();\n let day = d.getDate();\n let hr = d.getHours();\n let min = d.getMinutes();\n let sec = d.getSeconds();\n\n let now = day+''+(month+1)+''+yr+''+hr+''+min+''+sec;\n\n let mail = $(this).find('.leadFormMail').val();\n\n var transactionId = criteoDrtData.id_ad+'_'+now;\n\n var addTrackTransactionEvent = {\n event: 'trackTransaction',\n id: transactionId,\n item: [{\n id: criteoDrtData.id_ad,\n price: criteoDrtData.price,\n quantity: 1,\n }]\n };\n\n window.criteo_q.push(\n { event: \"setAccount\", account: 83693 },\n { event: \"setSiteType\", type: criteoDrtData.device },\n { event: \"setEmail\", email: mail },\n addTrackTransactionEvent\n );\n });\n",
"type": "text/javascript"
},
"google": {
"content": "var googleDrtData = {\"webtrakkPage\":\"LISTING\",\"webtrakkAction\":\"\",\"webtrakkMacro\":\"MOTO\",\"v1\":\"privato.\",\"v2\":\"invia.\",\"v3\":null,\"v4\":\"organico.\",\"v5\":null,\"ad\":\"\",\"id_ad\":\"\",\"status\":\"\",\"destve\":\"\",\"desmar\":\"\",\"desmod\":\"\",\"desall\":\"\",\"descmo\":\"\",\"id_prov\":\"\",\"price\":\"\",\"year\":\"\",\"sellerType\":\"privato\",\"cp56\":\"INFOBIKE;35;3051;;;;\",\"custom_parameter\":\"DRT_USATO_ALTRO\",\"user_check\":\"non_loggato\",\"cp23\":true,\"customerId\":\"\"};\n\n // Google Tag Manager\n dataLayer = window.dataLayer || [];\n\n function pushDataLayer(event, g) {\n var url = getContentIdByURL();\n\n if(event === 'scrollGallery'){\n url = getContentIdByURL('ad-gallery');\n }\n\n dataLayerConstructor = {\n 'url': url,\n 'event': event,\n 'contentGroup1':'EdiDomus',\n 'contentGroup2':'dueruote.it',\n 'contentGroup3':'USATO',\n };\n\n if (typeof googleDrtData.user_check !== 'undefined' && googleDrtData.user_check !== null) {\n if(googleDrtData.user_check == 'non_loggato'){\n dataLayerConstructor.loginStatus = 'non-loggato';\n }\n else{\n dataLayerConstructor.loginStatus = 'loggato';\n }\n }\n\n if(googleDrtData.webtrakkAction !== \"\")\n dataLayerConstructor.contentGroup5 = googleDrtData.webtrakkAction;\n\n dataLayer.push(dataLayerConstructor);\n }\n\n pushDataLayer('pageview', wt);\n",
"type": "text/javascript"
},
"tag-selligent": {
"content": "var value = `; ${document.cookie}`;\nvar parts = value.split(`; ${'CUID'}=`);\n if (parts.length === 2) \n var cuid = parts.pop().split(';').shift();\n \n console.log('CUID',cuid);\n \n if (cuid !== undefined){\n wa.bt_queue.push({\"customIdentifier\": cuid}); \n document.cookie = 'CUID=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';\n }\n \n var tagValues = new Array();\n\n var tagValue = new Object();\n tagValue.tag=\"hierarchy\";\n tagValue.value=\"dueruote.it_USATO_LISTING\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"properties\";\n tagValue.value=\"dueruote.it\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"section\";\n tagValue.value=\"USATO\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"subsection\";\n tagValue.value=\"LISTING\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"contentType\";\n tagValue.value=\"ALTRO\";\n tagValues.push(tagValue);\n\n\n tagValue = new Object();\n tagValue.tag=\"brand\";\n tagValue.value=\"\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"model\";\n tagValue.value=\"\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"searchPar\";\n tagValue.value=\"{"marca":"sym","modello":"nh-xcion-125","page":"1"}\";\n tagValues.push(tagValue);\n\n \n\n\n wa.bt_queue.push({\n \"isEvent\": false,\n \"isTargeting\": true,\n \"async\": true,\n \"tagValues\": tagValues\n }); \n ",
"type": "text/javascript"
}
}
{
"adagio": {
"content": "",
"type": "text/plain",
"class": "_iub_cs_activate-inline",
"data": {
"iub-purposes": "1"
}
},
"webtrakk": {
"content": "var webtrakkDrtData = {\"webtrakkPage\":\"LISTING\",\"webtrakkAction\":\"\",\"webtrakkMacro\":\"MOTO\",\"v1\":\"privato.\",\"v2\":\"invia.\",\"v3\":null,\"v4\":\"organico.\",\"v5\":null,\"ad\":\"\",\"id_ad\":\"\",\"status\":\"\",\"destve\":\"\",\"desmar\":\"\",\"desmod\":\"\",\"desall\":\"\",\"descmo\":\"\",\"id_prov\":\"\",\"price\":\"\",\"year\":\"\",\"sellerType\":\"privato\",\"cp56\":\"INFOBIKE;35;3051;;;;\",\"custom_parameter\":\"DRT_USATO_ALTRO\",\"user_check\":\"non_loggato\",\"cp23\":true,\"customerId\":\"\"};\n\n //WEBTRAKK functions\n function getContentIdByURL(page) {\n var url = document.location.href;\n if (url && url !== null) {\n url = url.split(\"?\")[0].toLowerCase();\n if (page === 'ad-gallery') {\n url = url + '.gallery';\n }\n return url;\n }\n return \"no_content\";\n };\n\n function getRefDomainByName(name) {\n var match = RegExp(name).exec(document.referrer);\n if (match)\n return name;\n else\n return 'not-from-google';\n }\n\n //WEBTRAKK pageConfig\n var pageConfig = {\n linkTrack: \"link\",\n heatmap: \"0\",\n form: \"\",\n contentId: getContentIdByURL()\n };\n\n var wt = new webtrekkV3(pageConfig);\n\n wt.heatmapRefpoint = \"wt_refpoint\";\n\n if(webtrakkDrtData.criteoSession !== '' && webtrakkDrtData.criteoSession === 'criteo-in-master'){\n window.webtrekk_funcs.trackWebtrekkEvent(\"Qusato.lead.\" + webtrakkDrtData.v1 + webtrakkDrtData.v2 + webtrakkDrtData.v3 + webtrakkDrtData.v4 + webtrakkDrtData.v5);\n }\n\n //WEBTRAKK cg contentGroup\n wt.contentGroup = {\n 1: \"Edidomus\",\n 2: \"dueruote.it\",\n 3: \"USATO\",\n 4: webtrakkDrtData.webtrakkPage\n };\n\n if(webtrakkDrtData.webtrakkAction !== \"\") {\n wt.contentGroup.push({5: webtrakkDrtData.webtrakkAction});\n }\n\n //WEBTRAKK cp customParameter\n wt.customParameter = {\n 4: \"MOTO \" + webtrakkDrtData.status,\n 5: webtrakkDrtData.destve,\n 6: webtrakkDrtData.desmar,\n 7: webtrakkDrtData.desmod,\n 8: webtrakkDrtData.desall,\n 13: webtrakkDrtData.descmo,\n 14: webtrakkDrtData.id_prov,\n 15: webtrakkDrtData.user_check,\n 16: webtrakkDrtData.price,\n 18: webtrakkDrtData.year,\n 19: webtrakkDrtData.webtrakkMacro,\n 20: webtrakkDrtData.sellerType,\n 21: webtrakkDrtData.id_ad\n };\n\n if(webtrakkDrtData.cp23){\n wt.customParameter[23] = webtrakkDrtData.custom_parameter;\n } else {\n wt.customParameter[23] = \"NO_ADV\";\n }\n\n if(webtrakkDrtData.cp47 !== \"\"){\n wt.customParameter[47] = webtrakkDrtData.cp47;\n }\n\n var url = new URLSearchParams(window.location.search);\n var comeFromParam = url.get('comeFrom');\n\n if(comeFromParam !== null){\n wt.customParameter[42] = comeFromParam;\n }\n\n //WEBTRAKK customerId\n if(webtrakkDrtData.customerId !== \"\"){\n wt.customerId = webtrakkDrtData.customerId;\n }\n\n //WEBTRAKK customSessionParameter\n var search_source;\n var came_from;\n\n came_from = getRefDomainByName(\"google\");\n\n if (came_from == 'google') {\n search_source = wt.urlParam(document.referrer, \"source\");\n } else if (came_from == \"not-from-google\") {\n search_source = \"not-from-google\";\n }\n\n wt.customSessionParameter = { 1: search_source };\n\n\n /* CP56 | DRTUSA-139 */\n if(webtrakkDrtData['cp56']){\n wt.customParameter['56'] = webtrakkDrtData['cp56'];\n }\n\n /*\n *\n * Sending data\n *\n */\n\n //WEBTRAKK sendWebtrekkEvents\n window.webtrekk_funcs.sendWebtrekkEvents();\n\n if (webtrakkDrtData.webtrakkPage != 'SCHEDA ANNUNCIO'){\n wt.sendinfo();\n }\n\n if(document.getElementById(\"webtrakk-facile\")) {\n window.webtrekk_funcs.trackWebtrekkEvent('finanziamento.usato.imps');\n }\n",
"type": "text/javascript"
},
"criteo": {
"content": "var criteoDrtData = {\"device\":\"d\",\"event\":\"viewList\",\"list\":\"\\u0022\\u0022\",\"id_ad\":\"\",\"email\":\"\",\"transaction_id\":\"\",\"price\":\"\"};\n\n window.criteo_q = window.criteo_q || [];\n\n var additionalEvent = {\n event: criteoDrtData.event\n };\n\n if(criteoDrtData.list !== \"\") {\n additionalEvent.item = criteoDrtData.list;\n } else if(criteoDrtData.id_ad !== \"\") {\n additionalEvent.item = criteoDrtData.id_ad;\n }\n\n window.criteo_q.push(\n { event: \"setAccount\", account: 83693 },\n { event: \"setSiteType\", type: criteoDrtData.device },\n { event: \"setEmail\", email: criteoDrtData.email },\n additionalEvent\n );\n\n if ($('#detail-start').length > 0) {\n var observer = new MutationObserver(function () {\n if ($('.lead-form-message.verde').length > 0) {\n additionalEvent.event = 'Product';\n window.criteo_q.push(\n { event: \"setAccount\", account: 83693 },\n additionalEvent\n );\n\n observer.disconnect();\n }\n });\n\n observer.observe(\n document.querySelector('#lead-form-cont'),\n {\n attributes: true,\n childList: true,\n subtree: true,\n characterData: true\n }\n );\n };\n\n $(document).on('submit','form.lead-form',function(){\n\n let d = new Date();\n let yr = d.getYear();\n let month = d.getMonth();\n let day = d.getDate();\n let hr = d.getHours();\n let min = d.getMinutes();\n let sec = d.getSeconds();\n\n let now = day+''+(month+1)+''+yr+''+hr+''+min+''+sec;\n\n let mail = $(this).find('.leadFormMail').val();\n\n var transactionId = criteoDrtData.id_ad+'_'+now;\n\n var addTrackTransactionEvent = {\n event: 'trackTransaction',\n id: transactionId,\n item: [{\n id: criteoDrtData.id_ad,\n price: criteoDrtData.price,\n quantity: 1,\n }]\n };\n\n window.criteo_q.push(\n { event: \"setAccount\", account: 83693 },\n { event: \"setSiteType\", type: criteoDrtData.device },\n { event: \"setEmail\", email: mail },\n addTrackTransactionEvent\n );\n });\n",
"type": "text/javascript"
},
"google": {
"content": "var googleDrtData = {\"webtrakkPage\":\"LISTING\",\"webtrakkAction\":\"\",\"webtrakkMacro\":\"MOTO\",\"v1\":\"privato.\",\"v2\":\"invia.\",\"v3\":null,\"v4\":\"organico.\",\"v5\":null,\"ad\":\"\",\"id_ad\":\"\",\"status\":\"\",\"destve\":\"\",\"desmar\":\"\",\"desmod\":\"\",\"desall\":\"\",\"descmo\":\"\",\"id_prov\":\"\",\"price\":\"\",\"year\":\"\",\"sellerType\":\"privato\",\"cp56\":\"INFOBIKE;35;3051;;;;\",\"custom_parameter\":\"DRT_USATO_ALTRO\",\"user_check\":\"non_loggato\",\"cp23\":true,\"customerId\":\"\"};\n\n // Google Tag Manager\n dataLayer = window.dataLayer || [];\n\n function pushDataLayer(event, g) {\n var url = getContentIdByURL();\n\n if(event === 'scrollGallery'){\n url = getContentIdByURL('ad-gallery');\n }\n\n dataLayerConstructor = {\n 'url': url,\n 'event': event,\n 'contentGroup1':'EdiDomus',\n 'contentGroup2':'dueruote.it',\n 'contentGroup3':'USATO',\n };\n\n if (typeof googleDrtData.user_check !== 'undefined' && googleDrtData.user_check !== null) {\n if(googleDrtData.user_check == 'non_loggato'){\n dataLayerConstructor.loginStatus = 'non-loggato';\n }\n else{\n dataLayerConstructor.loginStatus = 'loggato';\n }\n }\n\n if(googleDrtData.webtrakkAction !== \"\")\n dataLayerConstructor.contentGroup5 = googleDrtData.webtrakkAction;\n\n dataLayer.push(dataLayerConstructor);\n }\n\n pushDataLayer('pageview', wt);\n",
"type": "text/javascript"
},
"tag-selligent": {
"content": "var value = `; ${document.cookie}`;\nvar parts = value.split(`; ${'CUID'}=`);\n if (parts.length === 2) \n var cuid = parts.pop().split(';').shift();\n \n console.log('CUID',cuid);\n \n if (cuid !== undefined){\n wa.bt_queue.push({\"customIdentifier\": cuid}); \n document.cookie = 'CUID=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';\n }\n \n var tagValues = new Array();\n\n var tagValue = new Object();\n tagValue.tag=\"hierarchy\";\n tagValue.value=\"dueruote.it_USATO_LISTING\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"properties\";\n tagValue.value=\"dueruote.it\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"section\";\n tagValue.value=\"USATO\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"subsection\";\n tagValue.value=\"LISTING\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"contentType\";\n tagValue.value=\"ALTRO\";\n tagValues.push(tagValue);\n\n\n tagValue = new Object();\n tagValue.tag=\"brand\";\n tagValue.value=\"\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"model\";\n tagValue.value=\"\";\n tagValues.push(tagValue);\n\n tagValue = new Object();\n tagValue.tag=\"searchPar\";\n tagValue.value=\"{"marca":"sym","modello":"nh-xcion-125","page":"1"}\";\n tagValues.push(tagValue);\n\n \n\n\n wa.bt_queue.push({\n \"isEvent\": false,\n \"isTargeting\": true,\n \"async\": true,\n \"tagValues\": tagValues\n }); \n ",
"type": "text/javascript"
}
}