1$(document).ready(function () { 2 //Automovil 3 $('#tp-ml-automoviles').on('click', function () { 4 let $category = window.location.href; 5 dataLayer.push({ 6 'eventCategory': 'Home_Botones_D ', 7 'eventAction': 'Click_Automoviles ', 8 'eventLabel': $category 9 }); 10 }); 11 //Maquinaria 12 $('#tp-ml-maquinaria').on('click', function () { 13 let $category = window.location.href; 14 dataLayer.push({ 15 'eventCategory': 'Home_Botones_D ', 16 'eventAction': 'Click_Maquinaria ', 17 'eventLabel': $category 18 }); 19 }); 20 21 //Postventa 22 $('#tp-ml-postventa').on('click', function () { 23 let $category = window.location.href; 24 dataLayer.push({ 25 'eventCategory': 'Home_Botones_D ', 26 'eventAction': 'Click_Postventa ', 27 'eventLabel': $category 28 }); 29 }); 30 31 //Trayectortia 32 $('#tp-trayectoria').on('click', function () { 33 let $category = window.location.href; 34 dataLayer.push({ 35 'eventCategory': 'Home_Botones_D ', 36 'eventAction': 'Click_Trayectoria ', 37 'eventLabel': $category 38 }) 39 }) 40 41 //Cotiza 42 $('#tp-cotiza').on('click', function () { 43 let $category = window.location.href; 44 dataLayer.push({ 45 'eventCategory': 'Home_Botones_D ', 46 'eventAction': 'Click_Cotiza ', 47 'eventLabel': $category 48 }) 49 }) 50 51 //Rrespaldo 52 $('#respaldo_derco').on('click', function () { 53 let $category = window.location.href; 54 dataLayer.push({ 55 'eventCategory': 'Home_Botones_D ', 56 'eventAction': 'Click_Respaldo ', 57 'eventLabel': $category 58 }) 59 }) 60 61 //Postventa Automotriz 62 $('#tp-postventa').on('click', function () { 63 let $category = window.location.href; 64 dataLayer.push({ 65 'eventCategory': 'Pg_Postventa_D ', 66 'eventAction': 'Click_PostventaAutomotriz', 67 'eventLabel': $category 68 }) 69 }) 70 71 //Repuestos y accesorios 72 $('#tp-repuestos-accesorios').on('click', function () { 73 let $category = window.location.href; 74 dataLayer.push({ 75 'eventCategory': 'Pg_Postventa_D ', 76 'eventAction': 'Click_PostventaRepuestos', 77 'eventLabel': $category 78 }) 79 }) 80 81 82 //Postventa Maquinaria 83 $('#tp-postventa-maquinaria').on('click', function () { 84 let $category = window.location.href; 85 dataLayer.push({ 86 'eventCategory': 'Pg_Postventa_D ', 87 'eventAction': 'Click_Postventaaquinaria', 88 'eventLabel': $category 89 }) 90 }) 91 92 //Whatsapp icono 93 $('#style-3').on('click', function () { 94 let $category = window.location.href; 95 dataLayer.push({ 96 'eventCategory': 'Home ', 97 'eventAction': 'Click_Whatsapp', 98 'eventLabel': $category 99 }) 100 }) 101 //Te llamamos 102 $('#tp-call').on('click', function () { 103 let $category = window.location.href; 104 dataLayer.push({ 105 'eventCategory': 'Contacto_D', 106 'eventAction': 'Click_TeLlamamos', 107 'eventLabel': $category 108 }) 109 }) 110 111 // PQRS 112 $('.listaDesplegable').on('click', function(){ 113 var a = $(".tp-li-listaDesplegable h4.subtitle-2").text(); 114 console.log(a); 115 dataLayer.push({ 116 'eventCategory': 'PQR', 117 'eventAction': 'Click_FAQs', 118 'eventLabel': [ 119 a 120 ] 121 }) 122 }) 123 124 //=======================FORMULARIOS 125 126 //Formulario PQR 127 $('.tp-enviar-pqr').on('submit', function () { 128 let $category = window.location.href; 129 dataLayer.push({ 130 'eventCategory': 'Form_PQR_D', 131 'eventAction': 'Submit_Form_PQR', 132 'eventLabel': $category 133 }) 134 }) 135 136 //Formulario Flotas 137 $('.tp-enviar-flotas').on('submit', function () { 138 let category = window.location.href; 139 let tipoV = $('.tp-tipovehiculo-flotas').val(); 140 let tipoM = $('.tp-tipomatricula-flotas').val(); 141 let terreno = $('.tp-tipoterreno-flotas').val(); 142 let tipoA = $('.tp-tipoadquisicion-flotas').val(); 143 dataLayer.push({ 144 'eventCategory': 'Form_Flotas_D', 145 'eventAction': 'Submit_Form_Flotas', 146 'eventLabel': [ 147 tipoV, 148 tipoM, 149 terreno, 150 tipoA 151 ] 152 }) 153 }) 154 155 //Formulario Contactenos 156 $('.tp-enviarcontactenos').on('submit', function () { 157 let $category = window.location.href; 158 dataLayer.push({ 159 'eventCategory': 'Form_Contacto_D', 160 'eventAction': 'Submit_Form_Contacto', 161 'eventLabel': $category 162 }) 163 }) 164 165 // MARCAS DE AUTOMOVILES 166
167 // Suzuki - Citroen - DS Automoviles 168 $(".goto_site_automovies").click(function(event) { 169 var href= $(this).attr('href'); 170 //console.log(href); 171 //event.preventDefault(); 172 dataLayer.push({ 173 'eventCategory': 'Pg_Automoviles_D', 174 //'eventAction': 'Click_', 175 'eventLabel': [ 176 href 177 ] 178 }) 179 }) 180 181 // Derco Usados 182 $(".goto_site_marcas_dercousados").click(function(event) { 183 var href= $(this).attr('href'); 184 //console.log(href); 185 //event.preventDefault(); 186 dataLayer.push({ 187 'eventCategory': 'Pg_Automoviles_D', 188 'eventAction': 'Click_DercoCenter', 189 'eventLabel': [ 190 href 191 ] 192 }) 193 }) 194 195 // Derco Flotas 196 $(".goto_site_marcas_flotas").click(function(event) { 197 var href= $(this).attr('href'); 198 //console.log(href); 199 //event.preventDefault(); 200 dataLayer.push({ 201 'eventCategory': 'Pg_Automoviles_D', 202 'eventAction': 'Click_Flotas', 203 'eventLabel': [ 204 href 205 ] 206 }) 207 }) 208 209 // MARCAS DE MAQUINARIA 210 211 // Linde 212 $(".goto_site_marcas_linde").click(function(event) { 213 var href= $(this).attr('href'); 214 //console.log(href); 215 //event.preventDefault(); 216 dataLayer.push({ 217 'eventCategory': 'Pg_Maquinaria_D', 218 'eventAction': 'Click_Linde', 219 'eventLabel': [ 220 href 221 ] 222 }) 223 }) 224 225 // Posventa 226 $(".goto_site_marcas_postventa").click(function(event) { 227 var href= $(this).attr('href'); 228 //console.log(href); 229 //event.preventDefault(); 230 dataLayer.push({ 231 'eventCategory': 'Pg_Maquinaria_D', 232 'eventAction': 'Click_Posventa', 233 'eventLabel': [ 234 href 235 ] 236 }) 237 }) 238 239 // INDUSTRIAL 240 241 // Hangcha 242 $(".goto_site_marcas_hangcha").click(function(event) { 243 var href= $(this).attr('href'); 244 //console.log(href); 245 //event.preventDefault(); 246 dataLayer.push({ 247 'eventCategory': 'Pg_Maquinaria_D', 248 'eventAction': 'Click_Hangcha', 249 'eventLabel': [ 250 href 251 ] 252 }) 253 }) 254 255 // Still 256 $(".goto_site_marcas_still").click(function(event) { 257 var href= $(this).attr('href'); 258 //console.log(href); 259 //event.preventDefault(); 260 dataLayer.push({ 261 'eventCategory': 'Pg_Maquinaria_D', 262 'eventAction': 'Click_Still', 263 'eventLabel': [ 264 href 265 ] 266 }) 267 }) 268 269 // Komatsu 270 $(".goto_site_marcas_komatsu").click(function(event) { 271 var href= $(this).attr('href'); 272 //console.log(href); 273 //event.preventDefault(); 274 dataLayer.push({ 275 'eventCategory': 'Pg_Maquinaria_D', 276 'eventAction': 'Click_Komatsu', 277 'eventLabel': [ 278 href 279 ] 280 }) 281 }) 282 283 // Formulario cotiza 284 $("#enviar-cotiza").on('click',function() { 285 286 let tipoV = $('#tipo').val(); 287 let marca = $('.wpcf7-select[name=marca-vu]').val(); 288 let modelo = $('.wpcf7-select[name=modelo-d-u]').val(); 289
290 let ciudad = $('#ciudad-cotiza').val(); 291 292 dataLayer.push({ 293 'eventCategory': 'Pg_Maquinaria_D', 294 'eventAction': 'Click_Komatsu', 295 'eventLabel': [ 296 tipoV, 297 marca, 298 modelo, 299 ciudad 300 ] 301 }) 302 }) 303 $.get("https://ipinfo.io", function (response) { 304 //console.log("IP: " + response.ip); 305 $('input[name=ip_web]').val(response.ip); 306 307 }, "jsonp"); 308 309});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.