// 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 } }); });
top of page

This is a Title 03

This is placeholder text. To change this content, double-click on the element and click Change Content.

This is a Title 03

This is placeholder text. To change this content, double-click on the element and click Change Content. Want to view and manage all your collections? Click on the Content Manager button in the Add panel on the left. Here, you can make changes to your content, add new fields, create dynamic pages and more. You can create as many collections as you need.

Your collection is already set up for you with fields and content. Add your own, or import content from a CSV file. Add fields for any type of content you want to display, such as rich text, images, videos and more. You can also collect and store information from your site visitors using input elements like custom forms and fields.

Be sure to click Sync after making changes in a collection, so visitors can see your newest content on your live site. Preview your site to check that all your elements are displaying content from the right collection fields.

  • Instagram
  • Pinterest

©2021 nga B You. Të gjitha të drejtat e rezervuara.

539 W. Commerce St #5729   Dallas, TX 75208

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); } }