Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following article will explain to you how you can send data layers to Mopinion.

Instructions

  1. In your form, add the element website data, this article will provide you with more information.

  2. There are 2 ways to add data layers:

2a. Often you do not need all the information in a data layer. You could then use the following method to select data from a specific key:

Do note, this method will only return the first value found. If there are more entries in the data layer with an ecommerce key, these will not be returned.

2b. The second method gives you the possibility to return more values. You will need to use an array filter function:

Code Block
dataLayer.filter(item => item.event === "timing_complete")
Image RemovedImage Added
Note

Do note, this method will not work for Internet Explorer 9 or lower, as these versions do not support Array.filter

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@957
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "KB"
labelskb-how-to-article