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

eZ Recommendation - improve ycq.push calls

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Confirmed
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Customer request
    • Component/s: eZ Recommendation
    • Labels:
      None
    • Environment:

      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

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

              Dates

              Created:
              Updated: