// Capture IP and User Agent
var ipAddress = ''; // Use a service to fetch IP
var userAgent = navigator.userAgent;
// Example of fetching IP using a public API
fetch('https://api.ipify.org?format=json')
.then(response => response.json())
.then(data => {
ipAddress = data.ip;
// Push to Data Layer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'pinterestEvent',
'userData': {
'ip_address': ipAddress,
'user_agent': userAgent
}
});
});
FIT: U.S Slim - Athletic Fit Twofer with modern activewear styling.
MODEL SIZE - 6' 0", 160 lbs, 38" Chest and wearing a size MEDIUM
DETAIL - Two Tone Colorblock Raglan T-shirt with contrast front, back and sleeve
ATHLETIC REGULAR FIT - Size MEDIUM fits a men with 6', 150 Lbs, 38" Chest / Machine Wash COLD and Line Dry to minimize shrinkage. This item may shrink about 1 - 2 inches with medium heat tumble dry
STYLE: This is the fashion raglan baseball tee you were looking for. Good choices for the change of seasons and easy to match with any outfit. This modern active lifestyle inspired unique shirts are perfect for casual wear, active sports, vacation, leisure, school and dress down at work. Wear it with jeans, shorts and your favorite baseball cap to complete the outfit of the day.
$28.50Price
No Reviews YetShare your thoughts.
Be the first to leave a review.
bottom of page
// Ensure that the script only runs on the order confirmation page
if (window.location.href.indexOf("order-confirmation") > -1) {
// Assuming Wix provides an API or a way to access order data (e.g., email from the order object)
var email = ''; // You will need to replace this with the actual method to fetch email from the order (e.g., Wix's API or Order object)
// Check if email is available before proceeding
if (email) {
// Function to hash email using SHA256
function hashEmail(email) {
var sha256 = new Hashes.SHA256();
return sha256.hex(email);
}
// Hash the captured email
var hashedEmail = hashEmail(email);
// Send the hashed email to Pinterest
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'pinterestEvent',
'userData': {
'email': hashedEmail
}
});
// Debugging: Log the hashed email to the console
console.log("Hashed Email Sent to Pinterest: " + hashedEmail);
}
}