document.addEventListener("DOMContentLoaded", function (event) {
const element = document.getElementsByClassName('oap_hairdiagStart_divbtn');
if (element.length > 0) {
let urlParams = new URLSearchParams(window.location.search);
if (urlParams != "" || urlParams != null) {
var keyValuepairs = urlParams.toString().split('&');
var qrUtmfound = 0;
keyValuepairs.forEach(function (item, index) {
if (item === "utm_source=pos" || item === "utm_medium=qrcode") {
qrUtmfound++;
}
});
if (qrUtmfound == 2) {
let relocHref = document.getElementById("hair_color_start_btn").getAttribute("href");
let relocUpdatedurl = relocHref + window.location.search;
document.getElementById("hair_color_start_btn").setAttribute("href", relocUpdatedurl);
}
}
}
});
{
"@context":"http://schema.org/",
"@type" :"Product",
"@id": "https://www.loreal-paris.com.mx/imedia-excellence/creme/tinte-permanente-3-castano-oscuro",
"url" : "https://www.loreal-paris.com.mx/imedia-excellence/creme/tinte-permanente-3-castano-oscuro",
"name": "Imedia Excellence Tinte permanente 3 Castaño Oscuro",
"image": "https://www.loreal-paris.com.mx/-/media/project/loreal/brand-sites/oap/americas/mx/products/hair/hair-color/excellence/creme-tinte/permanent-3-castano-oscuro/packshots/excellence-tinte-negro-3-pack-v2.png",
"description": "Tinte para cabello con Triple Protección y 100% Cobertura de canas. Rutina Inspirada en el Salón de Belleza",
"sku": "7506078935501",
"gtin13": "7506078935501"
,
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5",
"reviewCount": "1",
"bestRating" : "5",
"worstRating": "1"
}
}
IMÉDIA EXCELLENCE CREME tinte Tinte permanente 3 Castaño Oscuro | L'Oréal Paris