How to retrieve default price value of product in data layer for google tag manager in shopify?

I want get the default product price value of product into data layer for google tag manager. But due to currency converter app i am getting the converted price value. I have added the below code to get the default price value of the product, but it doesn’t work . Let me know if someone can help me to get the default price value of product

document.addEventListener(“DOMContentLoaded”, function() {
// Select all product elements
var products = document.querySelectorAll(‘.product-detail’);
var shopCurrency = Shopify.currency.active;

// Fetch exchange rates relative to GBP
fetch(‘https://api.exchangerate-api.com/v4/latest/GBP’)
.then(response => response.json())
.then(data => {
// Get the exchange rate for the shop’s currency to GBP
var exchangeRateToGbp = data.rates[shopCurrency];
if (!exchangeRateToGbp) {
console.error(No exchange rate found for currency: ${shopCurrency});
return;
}

// Create an array to hold the product details
var items = ;

// Loop through each product and extract details
products.forEach(function(product) {
var itemTitleElement = product.querySelector(‘.product-name a’);
var itemTitle = itemTitleElement ? itemTitleElement.textContent.trim() : ‘’;

var itemPriceElement = product.querySelector(‘[itemprop=“price”]’);
var itemPrice = 0;
if (itemPriceElement) {
// Get the price from the content attribute
var itemPriceString = itemPriceElement.getAttribute(‘content’);
itemPrice = parseFloat(itemPriceString);
}

var itemIdElement = product.querySelector(‘.loox-rating’);
var itemId = itemIdElement ? itemIdElement.getAttribute(‘data-id’) : ‘’;

var itemCategory = “{{ collection.title }}”; // Set a static category or adjust if dynamic category is available

var convertedPrice = (itemPrice / exchangeRateToGbp).toFixed(2);

// Create an item object
var item = {
item_name: itemTitle,
item_id: itemId,
currencyCode: ‘GBP’,
price: convertedPrice,
item_brand: ‘Longevity Box’, // Assuming brand is static
item_category: itemCategory,
};

items.push(item);
});

// Push the extracted data to the data layer
dataLayer.push({
event: ‘view_item_list’,
ecommerce: {
items: items
}
});

// For debugging: log the items to console
console.log(items);
})
.catch(error => {
console.error(‘Error fetching exchange rates:’, error);
});
});