Go to content!
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": "VideoObject",
"name": " Excellence Creme",
"description": "Excellence Creme",
"thumbnailUrl": "https://www.lorealparis.com.au/-/media/project/loreal/brand-sites/oap/apac/au/articles/local-articles/hair-colour-hub/capture-eva-longoria-video-placeholder.jpg?rev=8c51b72d696e42879eb8e035666d4698",
"uploadDate": "2020-06-18T01:15:58+00:00",
"embedURL": "https://www.youtube.com/embed/d9X_OF93KII"
}
{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type":"ListItem",
"position": 1,
"item": {
"@id": "/",
"name": "Home"
}
}
,
{
"@type":"ListItem",
"position": 2,
"item": {
"@id": "https://www.lorealparis.com.au/hair",
"name": "Hair"
}
}
,
{
"@type":"ListItem",
"position": 3,
"item": {
"@id": "https://www.lorealparis.com.au/hair/hair-colour",
"name": "Hair Colour"
}
}
,
{
"@type":"ListItem",
"position": 4,
"item": {
"@id": "https://www.lorealparis.com.au/hair-colour/excellence",
"name": "Excellence Hair Dye"
}
}
]
}