Início » How to use SafetyMails real time email verification API through Google Tag Manager

How to use SafetyMails real time email verification API through Google Tag Manager

How can you use the real time verification API through Google Tag Manager on your Landing Pages or registration forms.

Selecting this option, SafetyMails will release a code for install on Google Tag Manager. It makes possible to install SafetyMails real time email verification on Landing Pages. One of them is Dinamize (click here to see).

Remember: this API requires a monthly subscription of credits.

How to install

1- Creating a new source

how to add a new API source on SafetyMails

Then click on Google Tag Manager logo.

escolha integração api safetymails

Now, to create the new source, you need to register a name for it and the domain where it will work.

api safetymails step 1

Source name: This name will help to identify your API in SafetyMails in queries and reports.
Authorized domain: It defines which domain is allowed to make connections through the API.

 

2- Optional settings

The API has a standard setup. However, there are some optional API settings if you wish to.

Creating a new SafetyMails API - step 2

Run after typing finishes: This option will run the verification script only when typing is finished.
Typing wait time: Time (in seconds) that the API will wait between the end of typing and the email verification.
Allowed status: In addition to the valid email addresses, it is possible to allow the registration of other types of emails, such as Pending.

Creating a new SafetyMails API - step 3

Message for valid emails: Message that will be displayed in case of valid email.
Message for invalid emails: Message that will be displayed in case of invalid email.
Message for free emails: Message that will be displayed in case of free email addresses (such as Gmail, Hotmail, and others) – It will be displayed only if the user set the API to avoid these emails (see below).
Block free public domains? This option defines if the API will prevent the registration form from free email accounts (such as Gmail, Yahoo, and others).

 

Example:

After the registration the information, click on “Save” and your new source will be created. A Javascript code will be released.

<script type="text/javascript"
src="https://panel.safetymails.com/assets/js/safetyoptin_v3.0.min.js"></script>
<script type="text/javascript">
	__safetyObj__ = {
	api_key: 'e6d796f06a51fe395a7b35421c779859ee6894fe',
	ticket_origem: '14dc0f8c86963f30dc3b498b413640a3ddd79b3e'
	};
SafetyApi.init();
</script>

3- Google Tag Manager panel

In Google Tag Manager, access “Triggering>> Add“. Then, click on “trigger type“, select “Page view“. Save it.

Como configurar a API para verificação de emails em forms da SafetyMails através do Google Tag Manager- passo 3

Then, então, o menu “Tags >> New” and, in “Tag configuration“, select”custom HTML“.

Como configurar a API para verificação de emails em forms da SafetyMails através do Google Tag Manager- passo 4

Paste the SafetyMails script in the field “HTML”.

Como configurar a API para verificação de emails em forms da SafetyMails através do Google Tag Manager- passo 5

On the field “Trigger“, select “Page view“.

Como configurar a API para verificação de emails em forms da SafetyMails através do Google Tag Manager- passo 6

 

Save it and the real time email verification API will be able to be installed in Landing Pages based on Google Tag Manager.

In case of doubts, contact us. We are ready to help: [email protected]

 

More Reading

Post navigation