if (window.location.search.indexOf('track=yes') > -1) {
console.log('track present');
} else {
console.log('track not here');
}
Thanks to Stackoverflow
if (window.location.search.indexOf('track=yes') > -1) {
console.log('track present');
} else {
console.log('track not here');
}
Thanks to Stackoverflow