Home › Forums › Quform WordPress › Google Client ID › Reply To: Google Client ID
March 9, 2024 at 8:34 pm #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.