Reply To: Google Client ID

Home Forums Quform WordPress Google Client ID Reply To: Google Client ID

#36554
vsexmogushiy
Participant

Unfortunately, I can’t transfer the data correctly (nothing works), so I ask you to look at the route and show me what the problem is.

1. Go to the Yandex Metrcia — https://yandex.ru/support/metrica/objects/get-client-id.html?lang=en;

Cope example code:
ym(93307677, 'getClientID', function(clientID) {
  document.getElementById('clientID').value = clientID;
});

2. Add JS file with this code and connect my site (https://laptova.ru/scripts/clientid_userid_yclid.js).

3. Add hidden fields in my forms with dynamic value, default value, without value. Add this code to Custom JavaScript:

jQuery(function ($) {
    $('.quform-field-6_43, .quform-field-6_39. .quform-field-6_47').val(
        clientID()
    );
});

How I can send ClientID in my forms and how I can make it optimal?

  • This reply was modified 9 months, 2 weeks ago by vsexmogushiy.
Attachments:
You must be logged in to view attached files.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy