All Collections
Technical questions
Adding Yandex.Metrica to the landing page
Adding Yandex.Metrica to the landing page
Support avatar
Written by Support
Updated over a week ago

To add Yandex.Metrica to LuckyOnline landing pages, you will need:

  • A personal account in the LuckyOnline partner program

  • A Yandex.Metrica personal account

In the LuckyOnline personal account, select the offer, click “Create a flow” and open the landing page to which you want to add Yandex.Metrica.

1.Copy the domain of the landing page and the version.

image3.png

2. Go to Yandex.Metrica, click “Add a tag”.

image6.png

3. Tag Name - arbitrary;

Domain - the copied link;

Email - for notifications;

Turn on Webvisor;

Accept the conditions.

image13.png

4. Receive the number of our tag:

image15.png

5. Go to the tag settings by deleting the word in the link, as shown in the attachment below:

image48.png

6. Add a goal in the tag settings:

a) Make a test order on the landing page to copy the code from the newly opened tab

image66.png
image76.png

b) Insert the copied element into the Yandex.Metrica Goals

image63.png

7. Go to "Filters", click "Add operation" - “Delete all parameters” - "Save".

image60.png
image16.png

8. Copy the tag number:

image38.png

9. Go to the LuckyOnline account, choose the landing page with the tag and fill the Yandex ID field. Save the changes and copy the resulting link.

image69.png
image62.png
image50.png

10. Check the installed tag in the address bar of our landing page

image44.png

11. Test the order form again and go to the applications page to check the installed tag there as well:

image27.png

12. Return to the Yandex.Metrica personal account and study the statistics that appear thanks to the installed tag.

image71.png

Adding Yandex.Metrica to your own landing pages

1. Download files from Yandex Disk to hosting, policy and tender - https://disk.yandex.ru/d/jG1fS4gh__HTag ;

2. Rename index.html to index.php;

3. Download the file for sending leads to the hosting (folder lib + lucky.php);

4. Open index.php file;

and our scripts;

6. Check the connection to the price list - delete ../, if the price.js file is at the root of the domain <script src="../price.js"></script>

Prices on the landing page will NOT be changed in correspondence to the user’s IP;

7. Open the site, check if everything is OK;

8. Set up price.js for Russia (or any country) only;

9. Set up data transmission

Look for <form tag and add 2 required tags everywhere

action="lucky.php"

method="POST"

<form class="form landing__form" action="lucky.php" id="order_form0" method="POST">

IN EVERY FORM;

10. Add subid and utm_source - insert the following lines into the ALL forms after the line containing name ="phone":

<input type='hidden' name='utm_source' value='<?=$_GET['utm_source']?>' />

<input type='hidden' name='utm_content' value='<?=$_GET['utm_content']?>' />

<input type='hidden' name='utm_campaign' value='<?=$_GET['utm_campaign']?>' />

<input type='hidden' name='utm_term' value='<?=$_GET['utm_term']?>' />

<input type='hidden' name='utm_medium' value='<?=$_GET['utm_medium']?>' />

<input type='hidden' name='subid' value='<?=$_GET['subid']?>' /> //в статистике ПП этот параметр не отображается, но возвращется в постбеке

<input type='hidden' name='subid1' value='<?=$_GET['subid1']?>' />

<input type='hidden' name='subid2' value='<?=$_GET['subid2']?>' />

<input type='hidden' name='subid3' value='<?=$_GET['subid3']?>' /> ;

11. Configure the lucky.php file - open the file;

12. Chang the webmaster token (https://lucky.online/webmaster/profile.html);

13. Insert the hash of the flow;

14. Send an application to the number 9030000000 with the word “test”

15. Send an application to the number 9030000000 with words “test with subs and utm” tags;?subid1=1&subid2=2&subid3=3&utm_source=u&utm_content=c&utm_campaign=cam&utm_medium=

Did this answer your question?