Introducing Final and Max Currency Values in your Recordings!
Crazy Egg will automatically track the value of items in your visitor’s shopping carts during Recordings for Shopify, Magento, and WooCommerce sites. You can set your default currency settings under Options - Advance Tracking - scroll down to the bottom of the page for Currency Setting.
You can then sort your recordings by the FINAL or MAX currency value your visitors entered into their cart.
Using another E-commerce Platform?
To help you track e-commerce events directly on your website, we provide a public JavaScript interface to integrate with our tracking system. This allows you to send the currency value of the items into Crazy Egg.
Below is a guide on how to use the available methods and their parameters. Following these guidelines, you can efficiently integrate and track e-commerce events on your site using our public JavaScript interface.
- Parameters: All parameters are optional, and you can include any combination of them as needed.
- Session Worth: When using addToCart and checkoutCompleted, the session worth will be updated accordingly based on the provided data.
Adding to a Cart
Use this method to track when a customer adds an item to their cart. The parameters you provide are optional and can be included in any order.
CE2.addToCart({ name, quantity, price, currency });
Parameters:
- name (string, optional): The name of the product.
- quantity (number, optional): The quantity of the product added to the cart.
- price (number, optional): The final price for the specified quantity. For example, if quantity is 2 and price is 50, it means "two for $50" (not "$50 each").
- currency (string, optional): The currency in which the price is specified (e.g., 'USD').
Example:
CE2.addToCart({ name: 'Product 1', quantity: 2, price: 50, currency: 'USD' });
Starting the Checkout Process
Use this method to indicate that the checkout process has started. This method does not currently accept any parameters.
CE2.startCheckout();
Upon Completing the Checkout
Use this method to track the completion of a checkout. You can provide additional parameters to include more detailed information about the transaction.
CE2.checkoutCompleted({ amount, currency, orderID });
Parameters:
- amount (number, optional): The total order amount.
- currency (string, optional): The currency of the total amount (e.g., 'USD').
- orderID (string, optional): An identifier for the completed order.
Example:
CE2.checkoutCompleted({ orderId: '4444', total: 1000, currency: 'USD' });