Details
-
Improvement
-
Resolution: Unresolved
-
High
-
None
-
None
-
eZ Publish 5.4 Platform, eZ Recommendation Service LS 5.3.x (eZP54)
Description
The twig function
{{ yc_track_user(content.id) }}
is calling the template "track_user.html.twig" from the EzSystemsRecommendationBundle.
This template uses the following javascript code:
_ycq.push(['_setAccount', 'XXX']);
This code is misinterpreted by Google Tag Manager and analysed as an error because it is confused with the Google Analytics tracking code, which is:
gaq.push(['_setAccount', 'UA-XXXXX-X']);
If the following code also works for eZ Recommendation, I think it's better to use this one in the "track_user.html.twig" instead of the current one.
_ycq.push(['_setMandator', 'XXX']);
Thanks.