good day. There is data
data = Array ( [ltype] => Узнать 1 [goal] => uznat_01_now [thanx] => thanx1 [phone] => +7 (111) 222 11 11 [action] => send [formorder] => form-0 ) which are sent ajax
$.ajax({ url:'index.php', type: "POST", data : data, success: function(data){ console.log(data); } }); It is necessary to add data from utm tags to the data array
var utm = new { type_traffic: sbjs.get.current.typ, utm_source: sbjs.get.current.src, utm_medium: sbjs.get.current.mdm, utm_campaign: sbjs.get.current.cmp, utm_content: sbjs.get.current.cnt, utm_term: sbjs.get.current.trm }; I needed to add elements to the associative array. There are no associative arrays in JavaScript. Now I can not find an analogue of the function push (). Tell me if anyone knows. Thank.
var utm = new {,datawhich comes after all this is an array or an object? - Grundy