Magento
Learn how to install the Videowise Order Tracking Pixel on your Magento store.
Pixel Integration for Magento
Introduction
This document provides instructions on how to integrate Order Tracking Pixel with Magento.
Our Magento implementation includes the Order Tracking Pixel pre-installed on the default Thank you page.
If you are utilizing the default Thank you page, no further action is required.
Prerequisites
- Magento 2.x installed
- Admin access to your Magento backend files
- Videowise Pixel Tracking activated from Videowise Application
Integration Options
There are two options to integrate the Order Tracking Pixel on other pages in your Magento store:
Option 1: Using Magento XML Frontend Extensions
You can add our already defined PHTML block to your preferred location using Magento XML frontend extensions. This method involves updating your layout XML file to include the tracking pixel block. Here is an example:
Replace your-container-name
with the appropriate container name where you want the tracking pixel to be placed.
Option 2: Adding Custom JavaScript Code
Alternatively, you can add custom JavaScript code to your preferred location after a successful order. You will need to complete the necessary fields in the script. Here is an example:
Make sure to replace the placeholders ({{ ... }}
) with the actual values from your Magento store.
All actual values can be retrieved manually with custom code or using our PHP public method getOrderData
from Videowise\VideowiseApp\Block\VideowiseTrackingPixel
which will return the following array:
Conclusion
You have successfully integrated Pixel with your Magento store. For further customization and advanced features, refer to our FAQ page.