First Steps
It's essential meet the requirements and follow the first steps strictly in order to achieve a properly tracking deployment.
Requirements
Before install the module, be sure you meet the minimum requirements
- PHP 7.1
- PrestaShop 1.6.1
Uninstall Modules
It’s essential to uninstall any other tracking module, or theme snippet code that sends data to the chosen platform, so we'll avoid unexpected results.
Configure Cron Job
This feature is a server task to send missing transactions that for any reason the tracking module can not send it from customer device.
The task will collect all orders placed between current time less 10 minutes to 24h in the past, also the collected orders must meet the next conditions to be eligible for recovery.
- The order id is not in control table, or the control order state is related to missing order
- Current order status doesn't match any invalid or refund statuses set on module configuration Checkout Configuration tab
Warning
The recovery process will send the transaction only to the available API platforms that are properly configured with the tracking ID.
Current API platforms:
- Google Universal Analytics
- Google Analytics 4
Comming Soon API platforms:
- Google Ads
- Bing Ads
- TikTok
- Criteo
Configure The Job
The recommended configuration is fire the job each 10 minutes, this will assure that all missing transactions are recovered with minimal impact on report times.
Note
You will find the cron URL in module configuration Recover Transactions tab. If you have multishop enabled, you must create one cron job for each shop, so be sure you get the correct job url selecting the shop context on backoffice
*/10 * * * * /usr/bin/curl "https://my-shop-domain.com/index.php?fc=module&module=rcpgtagmanager&controller=crontask&token=n0nv4l1d70kenum3er" >/dev/null 2>&1
Tip
The most popular hosting panels are cPanel and Plesk, find official documentation about how to set up a cron job.
if you have any other panel, ask your hosting support how to add a cron job