I'm trying to push the dataLayer. But it keeps giving me a duplicate array. Please see below my code
<script src="https://code.jquery.com/jquery-3.5.0.js"></script>
<script>
dataLayer = [{
'productID': '123456',
'productTitle': 'Very awesome product',
'productPrice': '13.00'
}];
function next_step1c() {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'Enquiry',
'PageURL': window.location.href,
});
}
</script>
<fieldset id="firstc">
<div class="funkyradio">
<div class="funkyradio-success" onclick="next_step1c()">
<input type="radio" name="buy" id="check1c" value="Rolex"/>
<label for="check1c">Rolex</label>
</div>
</div>
</fieldset>
When I click the radio button I get the below result.

But when I clicked the word Rolex. I am getting duplicate
How can I get one push only when I clicked the word Rolex?
