How can i edit the following cord to display the total number of impression and conversion. when i console.log(data) i get array(100000) your assistance will be highly appreciated.
<script>
//pulling data from local json file
fetch('./logs.json')
.then((response) => {
return response.json();
})
.then((data) => {
// console.log(data);
let data1 = "";
data.forEach((values) => {
data1 += `
<div class="card">
<p class="impression">${values.impression}</p>
<p class="conversion">${values.conversion}</p>
</div> `;
});
document.querySelector("#card").innerHTML = data1;
})
.catch((error) => {
console.log(error);
})
</script>