=== Datalayer For Elementor ===
Contributors: sourei, otaviodeveloper
Tags: woocommerce, elementor, datalayer, formsubmit, google tag manager
Stable tag: 1.0.1
Requires at least: 5.0
Tested up to: 5.9.3
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html


Integration between the Elementor Forms and Datalayer

== Description ==

1. Get the user location and IP address;
2. When filling out and submitting an Elementor form it's returned the time and date that the submission was triggered;
3. When filling out and submitting an Elementor form, all form fields are sent to the dataLayer, following the following model:

{
    "event": "formSubmitDLFSE",
    "fields": {
        "nome": {
            "id": "nome",
            "type": "text",
            "title": "Nome",
            "value": "Name Example",
            "raw_value": "Name Example",
            "required": true
        },
        "telefone": {
            "id": "telefone",
            "type": "text",
            "title": "Telefone",
            "value": "(99) 99999-9999",
            "raw_value": "(99) 99999-9999",
            "required": true
        },
        "email": {
            "id": "email",
            "type": "email",
            "title": "Email",
            "value": "example@sourei.com.br",
            "raw_value": "example@sourei.com.br",
            "required": true
        },
        "cidade": {
            "id": "cidade",
            "type": "text",
            "title": "Cidade",
            "value": "Varginha",
            "raw_value": "Varginha",
            "required": true
        },
        "servico": {
            "id": "servico",
            "type": "checkbox",
            "title": "Serviços interessado",
            "value": "Digitalização",
            "raw_value": [
                "Digitalização"
            ],
            "required": false
        }
    },
    "gtm.uniqueEventId": 21
}

== Integrated Services ==

- Wordpress
- Woocommerce
- Elementor
- Google Tag Manager


= Instalation: =

- Upload the plugin files to the wp-content/plugins folder, or install using the WordPress plugin installer.
- Activate the plugin.

= Compatibility: =

Requires Elementor 3.0 or later.

== Changelog ==

= 1.0 - 2022/05/05 =