Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-1539

eZ Recommendation - improve ycq.push calls

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: High High
    • Customer request
    • None
    • eZ Recommendation
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: