If you use a lead generation tool like a pop-up, a subscription form or anything similar, they won't be automatically imported with the standard integration of Metrilo. In order to send these subscribers to our system, you'll need to add few additional lines of code. 

You need to identify the subscribers and send their emails to Metrilo 

The following example shows how identification works with WooCommerce and Magento:

var identifyParams = { name: 'Johny Bravo', first_name: 'Johny', last_name: 'Bravo', email: '[email protected]', tags: ['early_subscriber'] };

metrilo.identify('[email protected]', identifyParams);
metrilo.event('custom_event');

First name, last name and tags are optional. The custom event will allow you to target the leads with automated emails.

You can name your event any way you want - "subscribe for blog", "registered user", "pop-up subscribe", "newsletter subscriber", etc.

If the person doesn't want to receive newsletters:

metrilo.identify('[email protected]', {subscribed: false});

If the person DOES want to receive newsletters:

metrilo.identify('[email protected]', {subscribed: true}); 


The following example shows how identification works with Shopify and Custom web-stores

metrilo.identify('[email protected]');
metrilo.customer('[email protected]', { name: 'Johny Bravo', first_name: 'Johny', last_name: 'Bravo', email: '[email protected]', tags: ['early_subscriber'] });
metrilo.customEvent('custom_event');
Did this answer your question?