Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The EmailOptIn event should be triggered when a profile signs up for the newsletter in the footer of the website.

Minimum

At least the following is sent in the event:

Field label

Field content

event

EmailOptIn

email

Email address of the profile

newsletter

yes

You can find an example of the EmailOptIn tracking here: https://squeezely.tech/documentation#frontend-emailoptin (see Example)

Extra

In this event extra data fields from the datalayer can be sent along. Tip: send all fields that are available at the trigger in the datalayer and consult with the Squeezely users which extra fields they want to receive in the event.

 Which data fields can I send in the event?

You can find an overview of the data fields you can send in the event here: Data fields

 Which data fields are available for the trigger in the datalayer?
  • Activate the trigger on the website (for example in the case of ViewContent; view a product on the website)

  • Click on F12

  • Go to Console

  • Type 'datalayer' and press enter

  • Check in the response which fields are available:

Can't figure it out? Consult a webdeveloper

 How can I send custom data fields in the event?

First you need to create the custom data fields in Squeezely Create custom data fields

If the custom data fields are available in the datalayer, you can send them along with the field label: custom_(name of the field).

In the case of the custom data field custom_province, for example, custom_province must be sent along.

Check

After the implementation you can check the incoming event with its fields as follows:

  • Go to Data and scroll to 'Events':

  • Click on EmailOptIn

  • Check if the incoming data corresponds with the tracking

    • If yes, the event comes in complete

    • If not, check the implementation

  • No labels