firstPartyParams
Warning
Working with the JavaScript API requires knowledge of HTML and JavaScript. If you don’t know these languages, contact your website developer or webmaster.
The method is available for HTTPS websites.
Sends information about site users to improve the performance of advertising algorithms and more accurate analysis of their behavior on the site. This will help you increase the effectiveness of advertising campaigns and learn more about user behavior, even if they use browsers with limited cross-site tracking cookies (third-party cookies), such as Safari and Mozilla Firefox.
After the first data transfer using this method, the “Filling in contact details” goal will appear in Yandex Metrica. To do this, enable the Automatic goals option.
Note
The data doesn’t need to be hashed. During transfer, the data is hashed automatically and sent to Yandex Metrica in anonymized format.
ym(XXXXXX, 'firstPartyParams', parameters);
Alert
Specify the parameters in lowercase, without commas and spaces at the end.
Parameter |
Default value |
Type |
Description |
|
: |
Object |
Information that a user left about themselves on the site, such as through the feedback form.
|
Fields for the parameters object: |
|||
|
: |
String |
Email address. |
|
: |
String |
Phone number without spaces in the format 70123456789. |
|
: |
String |
User's first name. |
|
: |
String |
User's last name. |
|
: |
Integer or String |
Unique ID of Yandex user ( |
* Required parameter.
Learn more
Useful links |
Online training |