Follow

User Management

When a users logs-in to your ecommerce website and its redirected to an specific login page, you need to insert the following code. Please, only include this code for users that have accepted to receive email notifications:

<!-- BrainSINS Code Starts -->
<script type="text/javascript">    
var BrainSINSData = {       
pageType:"login",     
language: LANGUAGE,  
userEmail: EMAIL_USER
};
</script> <!-- BrainSINS Code Ends -->
  • EMAIL_USER: should be replaced by the customer’s email.
  • LANGUAGE: should be replaced by the user’s language. In most cases, it will be “en” for english, “es” for spanish, etc.

When a users logs-in to your ecommerce website using an asynchronous event, you need to insert one of the following functions. Please, only include this code for users that have accepted to receive email notifications:

    BrainSINSTracker.trackEMailNewsletter( EMAIL_USER, 1, LANGUAGE );

BrainSINSTracker.trackEMail(email);

NOTA:  is not necessary that a specific landing page after login exist. You can add userEmail to BrainSINSData in order to get the email. Those usar won't receive emails uless you add the parameter userNewsletter: 1. 



When a users opts-out from your email communications, you must notify our system by including the following code:

<!-- BrainSINS Code Starts -->
<script type="text/javascript">    
var BrainSINSData = {       
pageType:"login",     
language: LANGUAGE,  
userEmail: EMAIL_USER,
userNewsletter: 0
};
</script> <!-- BrainSINS Code Ends -->

This way allow you to get the emails from users that don't want to receive email notifications. 

When a users opts-out from your email communications, you must notify our system by including the following code:

BrainSINSTracker.trackEMailNewsletter( EMAIL_USER, 0, LANGUAGE );

 



Next you can find an example for the email "email@example.com", and the english language.

<!-- BrainSINS Code Starts -->
<script type="text/javascript">    
var BrainSINSData = {       
pageType:"login",     
language: "en",  
userEmail: "email@example.com",
};
</script> <!-- BrainSINS Code Ends -->

When a users opts-out from your email communications, you must notify our system by including the following code:

BrainSINSTracker.trackEMailNewsletter( "email@example.com", 1, "en" );
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk