• Resolved usrobotx

    (@usrobotx)


    Hello. I have click to chat (paid version) installed on my site, and I am trying to use it with Yandex Metrica (Yandex analogue of Google Analytics). YM natively tracks some actions on the site, such as opening messengers. But it uses link click to count this (like wa.me/+12131231). As I can see our button has no link in source, and thus YM does not recognise this action. Is there any way to help and solve this?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author bhvreddy

    (@bhvreddy)

    Hi,
    (This question is not related to the pro feature. for pro queries please contact us directly from the holithemes click to chat website. We will update the contact links. Thank you)

    Plugin dynamically created links after the user clicks to chat by considering multiple things: prefilled message, number, page type, etc.

    Using the class name we can track: ctc-analytics

    document.addEventListener('click', function (e) {
        if (e.target && e.target.classList.contains('ctc-analytics')) {
            // add your code here. i.e. call yandex event
    
        }
    });

    or

    Using the plugin’s custom event, it triggers when the user clicks to chat.

    document.addEventListener("ht_ctc_event_analytics", function (e) {
        // add your code here. i.e. call yandex event
    });

    or if you are looking for a different solution, please message us.

    Have a nice day,
    Thank you

    Thread Starter usrobotx

    (@usrobotx)

    Thank you. For this specific case should we go on communicating in here, or should you revert to pro support?

    As for the solution that you suggested – can you tell me how should I implement it?

    Plugin Author bhvreddy

    (@bhvreddy)

    sure, we will communicate here as this is not pro related query.

    I am not well familiar with Yandex analytics,

    If there are any solutions from your side to create event using class name please use the class name: ctc-analytics to create events at yandex.

    or if you familiar with javascript code to create event, we can use custom evnet that will trigger after user clicks to chat.

    document.addEventListener("ht_ctc_event_analytics", function (e) {
    // add your code here. i.e. yandex event
    });

    or if the above two solutions is not possible, I will try to work out on yandex analytics and create a solution on it. (it may take some time for us to finish this)

    Thank you

    Thread Starter usrobotx

    (@usrobotx)

    Unfortunately, as far as I can see Yandex Metrica does not offer custom solutions (like GA would do). They have native tracking solutions, and one of them is tracking clicks to messenger (by seeing if specific link, like wa.me/+1…) was clicked. Is it possible to introduce this link in the source code manually? This would solve the problem.

    Plugin Author bhvreddy

    (@bhvreddy)

    Sorry, currently this is not possible.

    But sooner or later we will try to find a solution, we like to work on it.

    Thank you

    Thread Starter usrobotx

    (@usrobotx)

    Thank you, I see. I will try to find another solution

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using Yandex Metrica native counter with Click To Chat’ is closed to new replies.