What to do if the Tag Assistant does not trigger?
If you note that the Tag Assistant doesn't trigger, this may come from:
- a change made by your theme in the order-confirmation.tpl template in charge of the order confirmation page display.
Here is what you have to do, or ask your webmaster to do in order to check this:
Open the order-confirmation.tpl template of your theme. IF your theme respects the PrestaShop development standards, you'll find it here:
- themes/your_theme_name/order-confirmation.tpl if you are under PrestaShop 1.6
- themes/your_theme_name/templates/checkout/order-confirmation.tpl if you are under PrestaShop 1.7
Once it is opened, look for the character string:
- {$HOOK_ORDER_CONFIRMATION} if you are under PrestaShop 1.6
- {block name='hook_order_confirmation'} if you are under PrestaShop 1.7
This string allows the call to the PrestaShop order confirmation hook which allows, through a suite of call to functions, the placed order data recording. If you don't find this string or if it's placed in comments, then the call to the order confirmation hook isn't done and the data can't be sent to the conversion tracking tag which is therefore not triggered.
Then, you must ask your webmaster or theme editor to restore the call to the PrestaShop order confirmation hook.(*)
- to your payment module which has its own order confirmation template (or which does not even redirect to a confirmation page). In this case, the PrestaShop order confirmation hook may not be used. Then you have to look for the same character strings as in the previous point, but instead of the order-confirmation.tpl template of your theme, you have to try to find them into the order confirmation template of your payment module (by the bye, it may also be called order-confirmation.tpl). If the strings aren't present, then you must contact the payment module developers or your webmaster to create the call to the PrestaShop order confirmation hook in the template.(*)
- This may also come from a JavaScript error that occures before tracking tag execution. In this case, follow the FAQ on the detection of a JavaScript error and if you notice an error, contact us so that we tell you what to do.
If your module's version is lower than or equal to 2.2.8:
- (*)First of all, for module's versions lower than or equal to 2.2.8, know that there is an option in the module that allows you to get around the problem of order confirmation call lack in the order confirmation template. It's the "Place your conversion code in the last funnel step?" option of the module "Advanced" tab. It allows you to send the conversion data to the tracking tag (executed via the footer) on the last step of the order funnel instead of sending them when the order confirmation page is diplayed.
However, please note that if you decide to activate this option, the conversion tracking will reflect the reality less accurately. Indeed, the tag triggering before payment, if this latter was to be canceled or generated an error, the order would still be considered by AdWords as validated and the conversion would be recorded, when, in reality, the conversion would not be done.
Moreover, if this option is activated and you have a PrestaShop 1.6 version(**), it's the footer hook that is used to record the data and trigger the tag, as for the "Google Dynamic Remarketing" (versions lower than or equal to 1.6.2) and "Dynamic Ads + Pixel" (versions lower than or equal to 1.2.17) modules. Then you have to ensure you that your theme allows the PrestaShop footer hook call (see below) otherwise the conversion will not be recorded.
(**)in 1.7 this is not the footer hook that is used, but another hook specific to 1.7 versions that is not supposed to be modified by your theme or a payment module. You will not have verifications to make in the footer.tpl template if you activate this option.
- Moreover, for versions lower than or equal to 2.2.8, the tag being executed in the footer, if it is not triggered, this may be due to a change made by your theme in the footer.tpl template in charge of the footer display.
Here is what you have to do, or ask your webmaster to do in order to check this:
Open the footer.tpl template of your theme. IF your theme respects the PrestaShop development standards, you'll find it here:
- themes/your_theme_name/footer.tpl if you are under PrestaShop 1.6
- themes/your_theme_name/templates/_partials/footer.tpl if you are under PrestaShop 1.7
Once it is opened, look for the character string:
- {$HOOK_FOOTER} if you are under PrestaShop 1.6
- {hook h='displayFooter'} if you are under PrestaShop 1.7
This string allows the call to the PrestaShop footer hook which allows, through a suite of call to functions, the triggering of the tracking tag. If you don't find this string or if it's placed in comments, then the call to the footer hook isn't done and the tracking tag can't be triggered.
Then, you must ask your webmaster or theme editor to restore the call to the PrestaShop footer hook.