The standard implementation of the YouLead system in the Magento 2.x store consists in installing the plugin and its correct configuration. The plugin does the following:
- Tracking code installation
- Tracking the registration form
- Customer data editing form tracking
- Tracking the subscription to the newsletter
- Product viewing tracking
- Cart tracking
- Purchase tracking
- Shopping cart
- Sharing a product feed
Installing YouLead plugin in the store
At https://marketplace.magento.com, search and buy the YouLead plugin
After completing the purchase, click the install button
Then copy the Access Key If Access Key is not generated, you must manually generate by clicking the Create A New Access Key button.
After logging in to shop administration panel, go to the System -> Magento Connect -> Magento Connect Manager tab
In the Install New Extensions section, paste the previously copied link and click the Install button
Then click Proceed button to continue the installation
After successful installation, the following screen will appear:
The installed plug-in will appear in the System -> Configuration tab. Complete the plug configuration with data attached to this manual and set the Enabled field to Yes.
Tracking code installation
The tracking code contains the customer ID given by YouLead administrator. It is added on each subpage of the website directly before the </body> tag
Tracking the registration form
Tracking the registration form is handled by the /Command/Contact/FillForm from the server Api. They are sent to YouLead :
- ylid and sessionId cookie data
- website address
- form name: form-validate
- data from the form (name, surname, email)
Customer data editing form tracking
Tracking the data editing form is carried out similary to tracking the registration form using the /Command/Contact/FillForm method.
Tracking the subscription to the newsletter
Tracking the subscription to the newsletter is carried out in a similar way to tracking the registration form using the /Command/Contact/FillForm method. YouLead is sent the e-mail address provided when completing the form.
Product viewing tracking
After each change in the basket, a function is called that sends the entire contents of the basket together with a link to save the basket.
When uploading the cart contents to the system, a cart recovery link is also sent that contains information about the current cart.
Sharing a product feed
After installing the plugin, a dedicated endpoint is created, which allows to download the current product feed. Thanks to this, in the most cases there is no need to install additional plugins for the implementation of the YouLead system in the Magento store.