...
Repeat these 4 steps to create the other 7 data layer variables needed:
Variable name (8 Data Layer VariableVariables) | Data Layer Variable Name | What it captures |
---|---|---|
preezie.trigger | preezie.trigger | How the journey was triggered (note, workflow = embedded) |
preezie.journey | preezie.workflow | The name of the journey |
preezie.connector | preezie.selector | The name of the journey connector (aka a workflow selector) |
preezie.questionref | preezie.ref | The short version of the question |
preezie.answer | preezie.answer | The text of each answer the user gives |
preezie.productid | preezie.product.unique | The unique id of the clicked product in the results (as defined by your product feed attributes in the preezie CMS) |
preezie.position | preezie.product.position | The position the clicked product was ranked in the recommendation results |
preezie.productname | preezie.product.name | The name of the product that was clicked on. |
...
Info |
---|
If you want to include other parameters just use the same format with the variables from Step 2a. Note, preezie_click has both event parameters and user parameters |
Tag name | Taq type | Configuration Tag | Event Name | Event Parameter Name | Value | Trigger (as per Step 2b) |
---|---|---|---|---|---|---|
GA4 preezie_load | Google Analytics: GA4 Event | (Select your GA4 variable within GTM) | preezie_load | journey_trigger | {{preezie.trigger}} | preezie.load |
journey_name | {{preezie.journey}}{{preezie.connector}} | |||||
GA4 preezie_click | Google Analytics: GA4 Event | (Select your GA4 variable within GTM) | preezie_click | journey_trigger | {{preezie.trigger}} | preezie.click |
journey_name | {{preezie.journey}}{{preezie.connector}} | |||||
journey_answer | {{preezie.answer}} | |||||
User Properties | ||||||
journey_user | {{preezie.journey}}{{preezie.connector}} | |||||
GA4 preezie_completed | Google Analytics: GA4 Event | (Select your GA4 variable within GTM) | preezie_completed | journey_trigger | {{preezie.trigger}} | preezie.completed |
journey_name | {{preezie.journey}}{{preezie.connector}} | |||||
GA4 preezie_resultclick | Google Analytics: GA4 Event | (Select your GA4 variable within GTM) | preezie_resultclick | journey_trigger | {{preezie.trigger}} | preezie.resultclick |
journey_name | {{preezie.journey}}{{preezie.connector}} | |||||
journey_product_id | {{preezie.productid}} | |||||
journey_product_name | {{preezie.productname}} | |||||
journey_product_position | {{preezie.position}} | |||||
GA4 preezie_email | Google Analytics: GA4 Event | (Select your GA4 variable within GTM) | preezie_email | journey_trigger | {{preezie.trigger}} | preezie.email |
journey_name | {{preezie.journey}}{{preezie.connector}} |
...
...
Info |
---|
All events have just event parameters, with the exception of preezie_click which has event and user parameters (per screenshot). |
These events now need to be configured in GA4.
...
In GA4 > Settings > Custom definitions
Create custom dimensionAdd
Then add each of these values for these events:
Dimension name | Scope | Description | Event parameter |
---|---|---|---|
preezie_trigger | Event | How the preezie widget was triggered | journey_trigger |
preezie_journey | Event | Which journey was loaded and clicked on | journey_name |
preezie_answer | Event | The text of each answer the user gives | journey_answer |
preezie_product_id | Event | The unique ID of the clicked product | journey_product_id |
preezie_product_name | Event | The name of the clicked product | journey_product_name |
preezie_product_position | Event | The rank position of the clicked product in the preezie results | journey_product_position |
preezie_user | User | Which journeys the user loaded and clicked on | journey_user |
...
Note |
---|
Make sure the event parameter names are identical to your GTM parameter Names |
...
. |
...
That’s it!
Note, It can take up to 24 hours for these events to show within your GA4.
...