🎯
Recos Tag enables you to code your own recommendation banners and send automagically events to your analytics based on HTML attributes.

Setup

To start seeing analytics events flowing with Recos Tag and be able to monitor your Recos performances in the upcoming days :
  • Be sure that your Recos Tag is up and running by testing that recos exist in your global context by typing in your console
    • javascript
      recos

How it works

Recos Tag
  • enriches the event with all the data contained in the attributes of the element’s surrounding :
    • reco_id : from the first data-reco-id value detected in a parent element
    • item_id : from the first data-item-id value detected in a parent element
    • item_ids : from all the data-item-id in the children of the first parent element that has an reco-id
    • debug_mode : if data-reco-debug attribute is set to true
  • pushes it to the dataLayer
  • those events then trigger events sent to the Analyttics Tool (this trigger is settup in GTM)

FAQ