The Stackla SalesForce Commerce Cloud Cartridge makes it easy to enable Stackla Tracking Pixel on your eCommerce site.
Configure Tracking Pixel:
To enable the Stackla Tracking Pixel, navigate to the Stackla Cartridge preferences and ensure that the preference stacklaTrackingEnabled is enabled.
Also ensure that the preference stacklaTrackingPixelUrl has the value https://stp.stack.la/record.png
Included Events:
The following Events are included and enabled by default with the Stackla SalesForce Commerce Cartridge.
Event Name | Description | Event Parameters |
product_page_view | Record an event each time an end-user views a specific Product Page after interacting with a Stackla Widget | product_id |
add_to_cart | Record an event each time an end-user adds a particular Product to their Cart | product_id |
payment_info | Record an event when the user reaches the Payment Information Page / Starts the Checkout | product_id |
purchase | Record an event when the user has completed a Purchase | product_id |
Enable 'Add to Wishlist' Event:
In order to enable the tracking pixel “add_to_wishlist” event for use with the “plugin_wishlists” cartridge, uncomment the lines containing “processInclude(require('./product/wishlist'))” in the productDetail.js, productTile.js, and search.js files located in the “cartridge/client/default/js” directory.
In the main.js file located in the same directory, change the path for miniCart to “./components/miniCart”.
In the “paths” property of the package.json file located in the top level of the cartridge, add a “wishlists” property with a path to your “plugin_wishlists” cartridge.