// Enhanced Ad Tracking Script - Fixed for Paste Errors
// Add preconnect links for performance optimization
(function() {
const preconnectUrls = [
'https://fonts.gstatic.com',
'https://adservice.google.com',
'https://tpc.googlesyndication.com',
'https://securepubads.g.doubleclick.net',
'https://pagead2.googlesyndication.com',
'https://pubads.g.doubleclick.net',
'https://www.google-analytics.com',
'https://www.googletagservices.com',
'https://c.amazon-adsystem.com',
'https://aax.amazon-adsystem.com',
'https://connect.facebook.net'
];
preconnectUrls.forEach(function(url) {
const link = document.createElement('link');
link.rel = 'preconnect';
link.href = url;
document.head.appendChild(link);
});
})();
(function() {
'use strict';
// Configuration
const CONFIG = {
PREBID_TIMEOUT: 1500,
FACEBOOK_PIXEL_ID: '379693035734454',
UET_TAG_ID: '343164506',
REVENUE_THRESHOLDS: {
SMALL_EVENTS: [1, 2, 2.5, 3, 4, 5, 6, 7, 7.5, 8, 9],
MAJOR_EVENTS: [30, 50, 80, 100]
},
SCRIPTS: {
P1: 'https://cdn.motor-junkie.com/wp-content/uploads/2024/03/p1.js',
AY_WRAPPER: 'https://kqcyAQN8kdKcGrrw9.ay.delivery/manager/kqcyAQN8kdKcGrrw9'
}
};
// Utility functions
const Utils = {
isChrome: function() {
return /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
},
isIOS: function() {
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
},
isDomReady: function() {
return document.readyState === 'complete' || document.readyState === 'interactive';
},
waitForDomReady: function() {
return new Promise(function(resolve) {
if (Utils.isDomReady()) {
resolve();
} else {
const checkInterval = setInterval(function() {
if (Utils.isDomReady()) {
clearInterval(checkInterval);
resolve();
}
}, 20);
}
});
},
loadScript: function(src, options) {
options = options || {};
const script = document.createElement('script');
script.src = src;
if (options.id) script.id = options.id;
if (options.async) script.async = true;
if (options.referrerpolicy) script.referrerpolicy = options.referrerpolicy;
const target = options.appendTo || document.head;
target.appendChild(script);
return script;
},
createPixelImage: function(src) {
const noscript = document.createElement('noscript');
const img = document.createElement('img');
img.height = '1';
img.width = '1';
img.style.display = 'none';
img.src = src;
noscript.appendChild(img);
return noscript;
}
};
// Analytics and tracking state
const TrackingState = {
pixelAdsAmountValue: 0,
pixelLastSentValue: 0,
pixelEventFired: 0,
pixelSmallEventFired: 0,
doneAuctionsWins: [],
reset: function() {
this.pixelAdsAmountValue = 0;
this.pixelLastSentValue = 0;
this.pixelEventFired = 0;
this.pixelSmallEventFired = 0;
this.doneAuctionsWins = [];
}
};
// UET (Bing) tracking initialization
const UETTracker = {
init: function() {
(function(w,d,t,r,u) {
var f,n,i;
w[u] = w[u] || [];
f = function() {
var o = {ti: CONFIG.UET_TAG_ID, enableAutoSpaTracking: true};
o.q = w[u];
w[u] = new UET(o);
w[u].push("pageLoad");
};
n = d.createElement(t);
n.src = r;
n.async = 1;
n.onload = n.onreadystatechange = function() {
var s = this.readyState;
if (s && s !== "loaded" && s !== "complete") return;
f();
n.onload = n.onreadystatechange = null;
};
i = d.getElementsByTagName(t)[0];
i.parentNode.insertBefore(n,i);
})(window, document, "script", "//bat.bing.com/bat.js", "uetq");
}
};
// Analytics integration
const Analytics = {
initCustomProperties: function() {
window.assertiveQueue = window.assertiveQueue || [];
window.assertiveQueue.push(function() {
if (window.assertive && window.assertive.analytics && window.assertive.analytics.custom) {
window.assertive.analytics.custom.custom_4 = 'Layout_' + (window.ads_layout || 'default');
window.assertive.analytics.custom.custom_6 = "AY_wrapper";
}
});
},
sendCustomEvent: function(eventName, data) {
try {
if (typeof window.cis_send_custom_event === 'function') {
window.cis_send_custom_event(eventName, data);
}
} catch (e) {
console.warn('Failed to send custom event:', e);
}
},
sendToAPI: function(eventName) {
try {
if (typeof window.sajax_call_post === 'function' && window.ajaxurl) {
const data = {
event: eventName,
ad_id: window.location.href
};
const url = window.ajaxurl + "&action=cis_send_event";
window.sajax_call_post(url, JSON.stringify(data), function() {}, function() {});
}
} catch (e) {
console.warn('Failed to send API event:', e);
}
}
};
// Revenue tracking and pixel events
const RevenueTracker = {
processSmallEvents: function() {
const self = this;
CONFIG.REVENUE_THRESHOLDS.SMALL_EVENTS.forEach(function(threshold, index) {
if (TrackingState.pixelSmallEventFired <= index &&
TrackingState.pixelAdsAmountValue > threshold) {
TrackingState.pixelSmallEventFired++;
const eventValue = threshold / 10;
const eventName = eventValue + "R" + (window.site_prefix || '');
const eventData = {
currency: "USD",
value: threshold
};
// Facebook Pixel
if (typeof fbq !== "undefined") {
try {
fbq("trackCustom", eventName, eventData);
} catch (e) {
console.warn('Facebook pixel error:', e);
}
}
// Custom analytics
Analytics.sendCustomEvent(eventName, eventData);
// UET tracking
window.uetq = window.uetq || [];
window.uetq.push('event', eventName, {
event_value: threshold,
revenue_value: threshold,
currency: "USD"
});
}
});
},
processMajorEvents: function() {
const self = this;
CONFIG.REVENUE_THRESHOLDS.MAJOR_EVENTS.forEach(function(threshold, index) {
if (TrackingState.pixelAdsAmountValue > threshold &&
TrackingState.pixelEventFired === index) {
TrackingState.pixelEventFired++;
const eventName = "MJ_" + threshold;
const eventData = {
currency: "USD",
value: TrackingState.pixelAdsAmountValue
};
if (typeof fbq !== "undefined") {
try {
fbq("trackCustom", eventName, eventData);
} catch (e) {
console.warn('Facebook pixel error:', e);
}
}
Analytics.sendCustomEvent(eventName, eventData);
}
});
},
processRegularEvents: function() {
while (TrackingState.pixelAdsAmountValue > 10 &&
TrackingState.pixelAdsAmountValue < 310 &&
TrackingState.pixelAdsAmountValue > TrackingState.pixelLastSentValue + 10) {
TrackingState.pixelLastSentValue += 10;
const eventValue = TrackingState.pixelLastSentValue / 10;
const eventName = eventValue + "R" + (window.site_prefix || '');
const eventData = {
currency: "USD",
value: TrackingState.pixelLastSentValue
};
if (typeof fbq !== "undefined") {
try {
fbq("trackCustom", eventName, eventData);
} catch (e) {
console.warn('Facebook pixel error:', e);
}
}
Analytics.sendCustomEvent(eventName, eventData);
window.uetq = window.uetq || [];
window.uetq.push('event', eventName, {
event_value: TrackingState.pixelLastSentValue,
revenue_value: TrackingState.pixelLastSentValue,
currency: "USD"
});
}
},
sendPurchaseAggregatedValue: function(winnerCPM) {
TrackingState.pixelAdsAmountValue += winnerCPM;
if (typeof fbq !== "undefined") {
this.processSmallEvents();
this.processRegularEvents();
this.processMajorEvents();
}
}
};
// Bid response handler
const BidHandler = {
getBidderPlatform: function(dfpResponseInfo) {
if (!dfpResponseInfo) return { id: 3, winner: "Google" };
const advertiserId = dfpResponseInfo.advertiserId;
if (advertiserId === 4566943199) {
return { id: 1, winner: "prebid" };
} else if (advertiserId === 4726541655) {
return { id: 2, winner: "amazon" };
}
return { id: 3, winner: "Google" };
},
findRealWinner: function(adUnitCode) {
try {
if (!window.pbjs || !window.pbjs.getBidResponsesForAdUnitCode) return null;
const bidResponses = window.pbjs.getBidResponsesForAdUnitCode(adUnitCode);
const allResponses = bidResponses ? bidResponses.bids || [] : [];
for (let i = 0; i < allResponses.length; i++) {
const response = allResponses[i];
if (response.status === "rendered" &&
TrackingState.doneAuctionsWins.indexOf(response.auctionId) === -1) {
TrackingState.doneAuctionsWins.push(response.auctionId);
return response;
}
}
return null;
} catch (e) {
console.warn('Error finding real winner:', e);
return null;
}
},
processBidRevenue: function(eventData) {
try {
let winnerCPM = eventData.winnerCPM;
const meta = eventData.meta;
if (winnerCPM === 0) return;
// Apply margin if configured
if (typeof window.cpm_margin_percent !== "undefined") {
const marginPercent = parseInt(window.cpm_margin_percent) || 0;
winnerCPM = winnerCPM - (winnerCPM * marginPercent) / 100;
}
if (winnerCPM < 0) return;
// Track revenue
RevenueTracker.sendPurchaseAggregatedValue(winnerCPM);
// Prepare tracking data
const platform = this.getBidderPlatform(meta.dfpResponseInformation);
const fbData = {
value: winnerCPM,
currency: "USD",
content_ids: window.location.href.split("/")[3] || '',
content_type: "Product",
bidder: platform.winner,
adUnit: meta.slotId
};
const bidData = {
biddingPlatformId: platform.id,
partnerAuctionId: meta.auctionId,
bidderCode: platform.winner,
prebidAuctionId: meta.auctionId,
cpm: winnerCPM,
currency: "USD",
originalCpm: winnerCPM,
originalCurrency: "USD",
status: "rendered",
placementId: meta.slotId
};
// Send tracking events
if (typeof fbq !== "undefined") {
try {
fbq("track", "Purchase", fbData);
} catch (e) {
console.warn('Facebook pixel purchase error:', e);
}
}
window.uetq = window.uetq || [];
window.uetq.push('event', 'purchase', {
event_value: winnerCPM,
revenue_value: winnerCPM,
currency: "USD"
});
// Report external win (non-Chrome only)
if (!Utils.isChrome() && window.intentIq_612283370 && window.intentIq_612283370.reportExternalWin) {
try {
window.intentIq_612283370.reportExternalWin(bidData);
} catch (e) {
console.warn('IntentIQ external win error:', e);
}
}
} catch (e) {
console.warn('Error processing bid revenue:', e);
}
}
};
// Event listeners setup
const EventListeners = {
setupRevenueTracking: function() {
window.addEventListener("assertive_predictedRevenue", function(e) {
try {
window.lol = e; // Keep original reference
const shouldShowLogs = window.cis_show_logs;
if (shouldShowLogs) {
console.log("assertive_predictedRevenue111", e.data.predictedRevenueCPM);
} else {
// Disable console.log only if explicitly requested
if (window.cis_show_logs === false) {
console.log = function() {};
}
}
const eventData = {
winnerCPM: e.data.predictedRevenueCPM.impression,
meta: e.data.meta
};
BidHandler.processBidRevenue(eventData);
} catch (error) {
console.warn('Revenue tracking error:', error);
}
}, false);
},
setupImpressionLogging: function() {
window.addEventListener("assertive_logImpression", function(event) {
try {
const payload = event.data.payload;
const mediaType = (payload && payload.highestBid && payload.highestBid.mediaType) || "banner";
if (payload.unfilled || payload.sourceInternal !== "gpt") {
return;
}
// Apply iOS bias for banner ads
if (mediaType === "banner" && Utils.isIOS()) {
payload.revenueBias = 0.975;
}
} catch (error) {
console.warn('Impression logging error:', error);
}
});
}
};
// Script loader
const ScriptLoader = {
loadAYWrapper: function() {
try {
Utils.loadScript(CONFIG.SCRIPTS.AY_WRAPPER, {
referrerpolicy: "no-referrer-when-downgrade"
});
} catch (e) {
console.warn('Failed to load AY wrapper:', e);
}
},
loadFacebookPixel: function() {
try {
const pixelImg = Utils.createPixelImage(
"https://www.facebook.com/tr?id=" + CONFIG.FACEBOOK_PIXEL_ID + "&ev=PageView&noscript=1"
);
document.head.appendChild(pixelImg);
} catch (e) {
console.warn('Failed to load Facebook pixel:', e);
}
},
loadP1Script: function() {
try {
return Utils.loadScript(CONFIG.SCRIPTS.P1, {
id: "script_p1"
});
} catch (e) {
console.warn('Failed to load P1 script:', e);
return null;
}
},
waitForP1: function() {
return new Promise(function(resolve) {
const checkInterval = setInterval(function() {
const isP1Loaded = document.getElementById("script_p1");
if (isP1Loaded) {
clearInterval(checkInterval);
resolve();
}
}, 100);
// Timeout after 10 seconds
setTimeout(function() {
clearInterval(checkInterval);
resolve();
}, 10000);
});
}
};
// Main initialization
const AdTrackingManager = {
init: function() {
return new Promise(function(resolve, reject) {
try {
console.log("AdTrackingManager: Starting initialization");
Utils.waitForDomReady().then(function() {
try {
// Initialize core components
UETTracker.init();
Analytics.initCustomProperties();
// Set global configuration
window.PREBID_TIMEOUT = CONFIG.PREBID_TIMEOUT;
window.pixel_ads_amount_value = 0;
window.pixel_last_sent_value = 0;
window.pixel_event_fired = 0;
window.pixel_small_event_fired = 0;
window.pixel_small_events = CONFIG.REVENUE_THRESHOLDS.SMALL_EVENTS;
window.doneAuctionsWins = TrackingState.doneAuctionsWins;
// Load scripts
ScriptLoader.loadAYWrapper();
ScriptLoader.loadFacebookPixel();
ScriptLoader.loadP1Script();
// Wait for P1 script to load
ScriptLoader.waitForP1().then(function() {
try {
// Setup event listeners
EventListeners.setupRevenueTracking();
EventListeners.setupImpressionLogging();
console.log("AdTrackingManager: Initialization complete");
resolve();
} catch (e) {
console.error("AdTrackingManager: Event listener setup failed", e);
reject(e);
}
}).catch(function(e) {
console.warn("AdTrackingManager: P1 script loading timeout", e);
// Continue anyway
EventListeners.setupRevenueTracking();
EventListeners.setupImpressionLogging();
resolve();
});
} catch (e) {
console.error("AdTrackingManager: Core initialization failed", e);
reject(e);
}
}).catch(function(e) {
console.error("AdTrackingManager: DOM ready wait failed", e);
reject(e);
});
} catch (error) {
console.error("AdTrackingManager: Initialization failed", error);
reject(error);
}
});
}
};
// Auto-initialize when script loads
AdTrackingManager.init().catch(function(error) {
console.error('Failed to initialize ad tracking:', error);
});
})();
Home Cars
20 Best Four-Door American Muscle Cars Ever Made
Cars
20 Best Four-Door American Muscle Cars Ever Made
Vukasin Herbez
June 20, 2018
For almost 50 years, car enthusiasts have been questioning the basic definition of a muscle car. Is it an American-made two-door coupe or convertible with a powerful V8 engine ? Must it have a V8, or will any powerful engine do? Can it be an import or only a full-blooded American machine? Can it be front-wheel, all-wheel drive or just a rear-wheel drive model?
All these questions divide the muscle car community, but the most controversial question is about the number of doors. Muscle car purists claim there are no four-door muscle car sedans, only performance sedans. But some car fans and even car historians, beg to differ. Although there are some proper four-door muscle cars, the earliest performance machines were sedans with powerful engines.
Even during the 60’s at the pinnacle of the original muscle car culture, Detroit produced several fast, powerful sedans they could call muscle cars. Yet they disguised these beasts in a comfortable sedan form. This list of 18 four-door American muscle cars will show you that muscle cars come in four doors, too. So read on to discover how the four-door muscle car segment is far bigger and more interesting than you think.
1. Oldsmobile Rocket 88
Oldsmobile presented two important things for the 1949 model year: the 88 model series and their new 303 CID V8 engine they called the Rocket V8. Both introductions would prove influential in Oldsmobile’s history. The 88 model was relatively light and compact, and the Rocket V8 had a two-barrel carburetor with 135 HP on tap. The combination of a light body and powerful engine in the 1949 Oldsmobile 88 was the first muscle car from Detroit.
Their new model was available as a two and four-door, but the four-door was more popular with buyers. Today, whenever someone mentions the 1949 Rocket 88, everybody thinks about the coupe. However, what they don’t know is the first proper muscle car was also available as a sedan. The 1949 Olds 88 enjoyed success with customers but also on the racetracks, too.
It won six out of nine NASCAR races that year, proving competitive on the drag strip, as well. The car was the theme of one of the first rock and roll songs , Rocket 88 , by Kings of Rhythm. This makes this car extremely influential in automotive history, as well as in the history of rock and roll.