Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
268 B
1
Indexable
var stockStatus = (parseInt(((((((window.dataLayer || []).filter(function (data) {
    return (data.eventAction || '').toLowerCase() === 'product detail view';
}).pop() || {}).ecommerce || {}).detail || {}).products || [])[0] || {}).stock_level) || 0) === 0 ? 0 : 1;