Navigation

Identifying Anonymous Subscribers for Web Push

Web Push notifications are sent to website visitors who have accepted on your website to receive notifications. No information is requested to visitors who subscribe, other than their consent. They are all anonymous at first. 

However, to be able to send personalized notifications (for instance: "Hello Suzan! See what's new in our platform!"), you need to be able to identify subscribers and see if some are contacts in your list of contacts in Dialog Insight. There are two methods to map subscribers to contacts in your project.


Method 1: Integration into the Website

This method uses the DI# language.

  1. Use the right information to call the following function:
    DI.WebPush.Identify("f_FieldCode", "Value");
  2. Replace f_FieldCode by the code of the field primary key
  3. Replace Valuewith the value to search for in contact profiles in your project.
    //Example when the email is the primary key:
    DI.WebPush.Identify("f_EMail", "email@domain.com");
    //f_EMail is just an example; check what the right code is in the configuration of your project fields.
    
    //Example when the client number is the primary key:
    DI.WebPush.Identify("f_NoClient", "123456789");
    //f_NoClient is just an example; check what the right code is in the configuration of your project fields.
    
    //Example with two primary keys:
    DI.WebPush.Identify("f_EMail", "email@domain.com", "f_NoClient", "123456789");
    //f_EMail and f_NoClient is just an example; check what the right code is in the configuration of your project fields.
  4. Verify the result page to see if the number of visitors increased.

Method 2: Injection rules in an Email

When configuring a website for Web Push, an injection rule (Dialog Insight tracking) is automatically added in email communications on links containing the domain name specified in the configuration of Web Push notifications. Contacts who click a link that redirects them to your website will then be associated with a subscription if they decide to allow notifications, or if they already have.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.