bento icon close

Trigger type: "Page seen"

Watch the video on this topic:


This trigger allows you to activate an automatic scenario when a specific page of your website is visited. It is very useful to send confirmation emails (order, booking, registration, white paper download, etc.) or product recommendations after a page has been visited.

If you have already set up the website connector and connected your website to your Mailify account by adding the relevant script on your website pages that you want to track, you can go directly to the "page seen" automatic campaign creation step.

Trigger settings in three steps

Activate and set up the website connector

To create automatic scenarios triggered when a page of your website is visited, you must activate and set-up the corresponding connector in Mailify and retrieve a JavaScript script to be copied and pasted on all the pages you want to track. Here is how to proceed:

- Go to the settings of your account




- Then click on the "Connectors" menu of the Mailify settings and activate the "Website connector"



- Click on the cogwheel icon icon to start the setting process.


Your website


- Click on "Add a website" if you haven't set-up the connector for your websote yet. If you want to edit the settings of an already connected website, you have to select it in the list of available websotes and then click on "Edit" in the action menu.


Add a website


- A new page opens. Type the URL and the name of your site and validate. Be careful, the provided URL must be the exact URL of your site. So make sure to specify or not the "www" at the beginning of the link or any slashes at the end of the URL.

- You will now see displayed the code of the JS script to be copied/pasted on all the pages to be tracked.


Main Javascript Code


- Copy and paste the code on all the pages to be tracked and validate the connector settings. For this step, we recommend you to ask for help from your webmaster or your web developers.

- Your site is now connected to your Mailify account.


Adapt the main script

You now need to customize the script on the pages that will be used to trigger an automatic campaign by adding the email address of your visitors.

The idea is quite simple: if you want your website to send Sarbacane the email address related to a visitor to a page of your site, your webmaster must customize the script as described in the few examples below.

Define the data to be sent to Mailify

_sbc.push(['setUser', {
email: 'anEmail',

Replace user data

_sbc.push(['setUserData', {
email: anEmail,

Do not track user if he is logged out


Once the JavaScript is embedded on your pages, you can go back to the trigger settings to test the synchronization. This option allows you to check that Mailify detects the events (page seen) occurring on your website. 


Identify your visitors

There are several options for collecting data about a visitor. Here are a few examples:

The visitor fills out a form on your site

By completing the fields of the form, the visitor himself fills in the information you need for the sending and personalization of your automatic campaign (POST).

The visitor clicks on a link in a campaign sent with Mailify

When a contact clicks on a link in one of your campaigns, the URL of the link can display your contact data by including personalization variables in the URL (GET).

The visitor is logged into your site

He will be identified thanks to the cookies corresponding to his session and you will thus have access to his log-in information (email, first name, last name, etc.).

We recommend you to ask your webmaster or your developers to contact our teams so we can assist them and properly set-up the pages of your website you want to associate with a "page seen" automatic campaign.

Create an automatic "page seen" email workflow

Everything is now set up properly. You can start creating your scenario.

Create an automatic campaign

To create an automatic "Page seen" scenario, create a new campaign. Select "Automatic campaign" then choose "Page seen" as the workflow type.


Page seen


Set the trigger

Select a connected site: select the relevant website from the list of available websites.


Select a connected website

If the Website Connector is not enabled or if you have not connected any websites to your Mailify account, a notification message will appear informing you that you can create your scenario but you will not be able to activate it. Please see above how to activate the connector and connect your website to your Mailify account.

If you experience difficulties to set up the connector or to connect your website to Mailify, please do not hesitate to contact us.

Fill in the absolute URL of the visited page : the provided URL must be the exact URL of your page. So make sure to specify or not the "www" at the beginning of the link or any slashes at the end of the URL.

Trigger delay: Here you can choose to trigger your scenario only for the first visit or for each visit to the page.

Unsubscription list: the contacts being part of this (or these) list(s) will be automatically excluded from your mailings by Mailify in order to avoid any unsolicited communication.

Unsubscription method: by default, the unsubscription method defined in the parameters of your account is applied. However, you can select a different method for this campaign if you wish. You can choose between opening the standard unsubscription page of Sarbacane, or redirect your contacts to your site to manage your unsubscriptions yourself.

Once you have set the parameters of your "Page seen" type trigger, click on the green button to validate.

You will then be automatically redirected to the tool to create your automatic scenario.




Add a message

To create your first email following a visit to page of your website, click on the "Add a message" button under the trigger in tool to create your automatic workflow. Select the Email Builder as the creation mode to choose a template or create your message from scratch.

When you have configured and edited your message as you wanted to, you can validate it. You will then be automatically redirected to the automatic campaign creation tool.


Add a message


You can then configure other reminder emails, for example according to the opening of the previous message.

You can set the delay for sending your campaign by clicking on the timing section of the trigger. Here you can specify whether you want to send immediately after the page has been visited or whether you want to apply a delay.


Set a delay


At any time you can change, from the automatic campaigns creation interface, the trigger settings of your workflow by clicking on the cogwheel icon in the top right corner of the trigger.


Advanced settings


In the advanced settings, you can consult and modify the conditions for sending and stopping your automatic campaign.


Sending settings


Your campaign will be automatically stopped if the contact unsubscribes (by defaut).


Automatic stop


Finally, when your entire campaign is set-up, all you have to do is activate your workflow.