Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel6
outlinefalse
typelist
separatorbrackets
printablefalse

What the data layer does

The data layer is a standardised way to pass information about your user’s activity between different web applications. It uses a JavaScript object in the browser to expose details about what your users are doing in realtime, meaning different software applications can listen and react to data across different sources.

To use this data typically a Tag Manager (such as e.g. Google Tag Manager or Tealium) is used to pass data variables between different sources, for example preezie journeys can pass information directly into your Google Analytics.

...

  • journey answer text, e.g. Budget = “$200-$300”

  • product recommendations, e.g. Most ranked #1 = “Nike Air Jordans”

  • journey triggers, e.g. CTA = 80% of new user completions

...

Panel
panelIconIdatlassian-light_bulb_on
panelIcon:light_bulb_on:
panelIconText:light_bulb_on:
bgColor#DEEBFF

If you haven’t already get in touch with your Customer Success representative or email support@preezie.com to turn on the data layer for your account!

...

  • Send your journeys answers directly into Google Analytics, e.g. what is the AOV of users looking for Organic products?

  • Send preezie answers to your ad retargeting platofmrplatform, e.g. create an audience based on all users who are buying a gift for their partner

  • Analyse which preezie trigger captures the most new user email addresses, e.g. report by trigger count of new user email submits

...

preezie currently supports the below tag managers:

Tag Manager Method

Event naming

Event listener

Details

Google Tag Manager

preezie.load
preezie.click etc.

Available as Data Layer Variables in GTM

Data Layer for Google Analytics events

Tealium OR custom JavaScript

Custom via: prz-data-layer-events

Data Layer for Tealium

Adobe Tag Manager

<coming soon>

(using Google Extension)

preezie.load
preezie.click etc.

(using window.dataLayer)

Data Layer for Adobe Launch

〰️ preezie data available

When the data layer is activated for your account you will start firing data events in realtime from all preezie journeys. Here is a full list of the events and data available.

Event name

When it’s fired

Event details

preezie.load

upon journey load

link

jump to details

preezie.click

upon each answer click

link

jump to details

preezie.completed

upon finishing the journey

link

jump to details

preezie.results

upon seeing product results

link

jump to details

preezie

result click

.resultclick

upon clicking a product result

link

jump to details

preezie.email

upon submitting an email

link

jump to details

preezie.addtocart

upon clicking add to cart button

jump to details

preezie.addalltocart

upon clicking add all to cart button

jump to details

🎫 Event details

Anchor
preezieload
preezieload
preezie load

...

This event is fired whenever the preezie widget is loaded. It will fire each time the widget is viewed, and for each different method, e.g. embedded, CTA etc.

Data variable

example

Description

preezie.trigger

cta

how the preezie journey was triggered, possible values are
"workflow, selector, cta, popup, exit intent, slide out"

preezie.page

https://preezie.com/

the page url the journey was triggered on

preezie.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device id

preezie.workflow / preeze.selector

retail experiences journey

the name of the journey loaded

preezie.workflowId / preezie.selectorId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the id of the journey loaded

Anchor
preezieclick
preezieclick
preezie click

...

This event is fired when each answer is clicked through in a preezie journey. It will fire each time the answer is clicked, even if they go back to change their answer.

Data variable

example

Description

preezie.trigger

cta

how the preezie journey was triggered

preezie.answer

1. Large

the question number and answer to the question

preezie.duration

2

how many seconds the user took to answer the question

preezie.question

What size are you looking for?

the question number and the full question text

preezie.ref

T-shirt size

the question short name

preezie.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device id

preezie.workflow / preeze.selector

retail experiences journey

the name of the journey loaded

preezie.workflowId / preezie.selectorId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the id of the journey loaded

Anchor
preeziecompleted
preeziecompleted
preezie completed

...

This event is fired when the journey is completed and the product results are seen.

Data variable

example

Description

preezie.trigger

cta

how the preezie journey was triggered

preezie.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device id

preezie.workflow

retail experiences journey

the name of the journey completed

preezie.workflowId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the id of the journey completed

Anchor
preezieresults
preezieresults
preezie results

...

This event is fired when each answer is clicked through in a preezie journey. It will fire each time the answer is clicked, even if they go back to change their answer.

Data variable

example

Description

preezie.product (array)

the name of the

arrray

array containing all product results.
Each product is referenced by [0] [1] [2] etc.

unique

SKU234

the unique ID of the product, e.g. the SKU. This is mapped in Database > Product attributes

name

Active Sports T-shirt Size L

the name of the product shown

position

1

the product’s rank in the preezie results

price

20.99

the price of the product

+ any field attribute with Appears in Stats set to True in Admin > Database > Product attributes

Image Added

skin_concern: "dry, sensitive"

star_rating: "4.356"

These will always be text string values.

All field names are lowercase and use _ in place of spaces, e.g. dress_length

preezie.trigger

cta

how the preezie journey was triggered

preezie.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device id

preezie.workflow

retail experiences journey

the name of the journey completed

preezie.workflowId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the id of the journey completed

Anchor
preezieresultclick
preezieresultclick
preezie.resultclick

...

This event is fired when each answer is clicked through in a preezie journey. It will fire each time the answer is clicked, even if they go back to change their answer.

Data variable

example

Description

preezie.product (object)

the name of the

arrray

object containing all product

results.
Each product is referenced by [0] [1] [2] etc.

details that was clicked.

unique

SKU234

the unique ID of the product, e.g. the SKU. This is mapped in Database > Product attributes

name

Active Sports T-shirt Size L

the name of the product shown

position

1

the product’s rank in the preezie results

price

20.99

the price of the product

url

https://preezie.com/mystore/t-shirt-large

the url of the product clicked

+ any field attribute with Appears in Stats set to True in Admin > Database > Product attributes

Image Added

skin_concern: "dry, sensitive"

star_rating: "4.356"

These will always be text string values.

All field names are lowercase and use _ in place of spaces, e.g. dress_length

preezie.trigger

cta

how the preezie journey was triggered

preezie.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device id

preezie.workflow

retail experiences journey

the name of the journey completed

preezie.workflowId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the id of the journey completed

Anchor
preezieemail
preezieemail
preezie.email

...

This event is fired when each answer is clicked through in a preezie journey. It will fire each time the answer is clicked, even if they go back to change their answer.

Data variable

example

Description

preezie.trigger

cta

how the preezie journey was triggered

preezie.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device id

preezie.workflow

retail experiences journey

the name of the journey loaded

preezie.workflowId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the id of the journey loaded

Coming soon: more Data Layer events

...

Anchor
addtocart
addtocart
preezie.addtocart

event name: preezie.addtocart

This event is fired when each time an add to cart button is clicked on the journey results.
See this guide to turn on add to cart buttons.

Data variable

example

Description

preezie.product (object)

the name of the object containing all product details that was clicked.

unique

SKU234

the unique ID of the product, e.g. the SKU. This is mapped in Database > Product attributes

name

Active Sports T-shirt Size L

the name of the product shown

position

1

the product’s rank in the preezie results

price

20.99

the price of the product

+ any field attribute with Appears in Stats set to True in Admin > Database > Product attributes

Image Added

skin_concern: "dry, sensitive"

star_rating: "4.356"

These will always be text string values.

All field names are lowercase and use _ in place of spaces, e.g. dress_length

preezie.trigger

cta

how the preezie journey was triggered

preezie.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device id

preezie.workflow

retail experiences journey

the name of the journey completed

preezie.workflowId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the id of the journey completed

Anchor
addalltocart
addalltocart
preezie.addalltocart

event name: preezie.addalltocart

This event is fired when each time the add all to cart button is clicked on the journey results.
See this guide to turn on Stacks bundling.

Data variable

example

Description

preezie.product (array)

the name of the array containing all product results.
Each product is referenced by [0] [1] [2] etc.

unique

SKU234

the unique ID of the product, e.g. the SKU. This is mapped in Database > Product attributes

name

Active Sports T-shirt Size L

the name of the product shown

position

1

the product’s rank in the preezie results

price

20.99

the price of the product

+ any field attribute with Appears in Stats set to True in Admin > Database > Product attributes

Image Added

skin_concern: "dry, sensitive"

star_rating: "4.356"

These will always be text string values.

All field names are lowercase and use _ in place of spaces, e.g. dress_length

preezie.trigger

cta

how the preezie journey was triggered

preezie.visitorId

51c297fd-cbaf-402f-84b6-5a30ceb87ee7

the visitor’s device id

preezie.workflow

retail experiences journey

the name of the journey completed

preezie.workflowId

8FD4AF3A-3061-4BB3-0618-08D9775347C8

the id of the journey completed