CCCPaste

PressWhizz - Add to cart

// the add_to_cart event triggers when a user adds an offer to the cart on the PressWhizz platform. Additional content or service prices are included in the main product.

window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: "add_to_cart", // push the event when user adds an offer to the cart
  ecommerce: {
  	user_id: "322", //Unique, consistent identifier for a user across sessions and devices.
	user_email: "[email protected]", // registered user email
items: [
     {
      item_id: "199149", // Unique ID for each product
      item_name: "Guest Post in Special Category", // We will track each offer as a separate product for reporting purposes. For example: Funds Deposit, Guest Post, Guest Post in Special Category, Link Insert, Link Insert in Special Category, etc Type: string
      item_brand: "presswhizz", // item_brand can be hardcoded to presswhizz.
      item_category: "Guest Post", // Guest Post for all guest post products, Link Insert for all Link Insert products, Wallet Deposit for funds deposits, Other for all other (homepage) products.
      price: 289.00, // Value as in value field above. Type: number, Contains only a number separated by a decimal point, Separator: dot, Good example: 1255.00, Bad examples: 1,225.00, 20.00 EUR, $5.00 Price parameter should be total price for a product (For example, if we have Publisher's Fee: 140.00, Writing Services: 50.00, T2 Link Building Fee: 99.00 total price for that product should be 289.00
      quantity: 1 // The quantity will always be set to one, as users can only buy one link from a specific website at a time.
    }]
  }
});