WhatsApp Multi Agent analytics

Hi,

I am interested in having analytics detect whenever a user clicks on any of the windows to activate the redirect to the api.whatsapp.com page with the message (or the app, if in mobile). That data we want to have it checked and tabulated to management using Google Data Studio.

Please indicate procedure to have that tracking available.

Rgds,

Rodney
14 responses Add Yours
       
  • Replied by admin on Tuesday, June 07 2022, 02:04 PM · Hide· #1
    Hi I have deleted the previous override files, re-added them and then added the code. It seems working good now. Can you check it please.
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by GarageCentraal on Tuesday, June 07 2022, 12:17 PM · Hide· #2
    Below is the access as requested. Please confim if details are included
  •  
  • Replied by admin on Monday, June 06 2022, 10:42 PM · Hide· #3
    Can you share temporary access to your website?. If you can, you can share it in the Your Site Details tab below. Only you and support staffs who are able to see it.
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by GarageCentraal on Monday, June 06 2022, 03:43 PM · Hide· #4
    Hi,

    Placiing the code the page goes into error page with the following message:
    syntax error, unexpected '"'

    Please advice.

    Rgds,

    Rodney
  •  
  • Replied by GarageCentraal on Friday, June 03 2022, 02:20 PM · Hide· #5
    Hi,
    The code seems to be for the second set of lines on line 566 on my end.
    Please confirm that that is possible or does not indicate an issue with our code, so I can proceed with code replacement.

    Rgds,

    Rodney
    • admin - more than a month ago
      Yes. that's it. Don't forget the first set too.
  •  
  • Replied by admin on Tuesday, May 31 2022, 10:15 PM · Hide· #6
    Ok can you just search both of those codes in that file?
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by GarageCentraal on Tuesday, May 31 2022, 08:27 PM · Hide· #7
    Hi,

    The override indeed is at the location you mention. However, the line 579 have a <script> code on it, not the line as indicated by you.

    Best Regards,

    Rodney
  •  
  • Replied by admin on Tuesday, May 31 2022, 02:34 PM · Hide· #8
    Hi Rodney, sorry I missed your reply.
    Please indicate exact path for default.php please?
    After you have created the override then path should be :
    [joomla_root]/templates/your_template_name/html/mod_whatsapp_agent/default.php


    Also on an unrelated question, you indicate that the changes will survive update. Will they also be valid whenever we decide to transition from 3.10 to Joomla 4?

    You will need to copy again the override folder to the template folder, if you use a new template for joomla 4
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by GarageCentraal on Tuesday, May 31 2022, 12:28 PM · Hide· #9
    Hi,

    Any news on the reply?
    Rgds,

    Rodney
  •  
  • Replied by GarageCentraal on Monday, May 16 2022, 02:11 PM · Hide· #10
    Hi,

    Thanks for your reply. Attempting the override on the default.php module seems to have run into a problem. The code on line 290 was as indicated. However, the code on 579 differed from the one on our servier. Please indicate exact path for default.php please?

    Also on an unrelated question, you indicate that the changes will survive update. Will they also be valid whenever we decide to transition from 3.10 to Joomla 4?

    Rgds,

    Rodney
  •  
  • Replied by admin on Saturday, May 14 2022, 03:50 AM · Hide· #11
    Hi sorry for delayed response.
    You can do that using template override. If don't know how to create override, you can follow this video :
    https://www.youtube.com/watch?v=tMB97xfYQfYAfter you have created override for whatsapp module, then change these code of default.php (line 290) :

    if($watarget == 0){
    	$clickdirect = 'onClick="parent.location=\'https://'.$waurl.'.whatsapp.com/send?phone='.$item->agent_phone_number.'\'"';
    }else{
    	$clickdirect = 'onClick="parent.open(\'https://'.$waurl.'.whatsapp.com/send?phone='.$item->agent_phone_number.'\')"';
    }


    into

    if($watarget == 0){
    	$clickdirect = 'onClick="parent.location=\'https://wa.me/send?phone='.$item->agent_phone_number.'\'"';
    }else{
    	$clickdirect = 'onClick="parent.open(\'https://wa.me/send?phone='.$item->agent_phone_number.'\')"';
    }


    and this one (line 579)

    if ((/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) && (window.navigator.userAgent.indexOf("Windows")!= -1) ) {
    	var URL = "https://web.whatsapp.com/send?phone=";
    }else {
    	var URL = "https://<?php echo $waurl;?>.whatsapp.com/send?phone=";
    }


    into this :
    if ((/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) && (window.navigator.userAgent.indexOf("Windows")!= -1) ) {
    	var URL = "https://wa.me/send?phone=";
    }else {
    	var URL = "https://wa.me/send?phone=";
    }
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by GarageCentraal on Thursday, May 12 2022, 06:56 PM · Hide· #12
    Also, I attempted to do the same Google Tag Manager trigger event for the api.whatsapp URL as originated by the module, but is not detected by the analytics
  •  
  • Replied by GarageCentraal on Thursday, May 12 2022, 01:40 PM · Hide· #13
    The tracking code is enabled using the Google Tag Manager. It is tracking now a different set of WhatsApp links on our website using a custom trigger that checks out whenever a customer clicks on links to be contacted via WhtasApp using a direct link (it uses the wa.me url, instead of the api.whatsapp.com usl used by the WhatsApp Multi Agent).

    Please advice. Our final goal is to be able to track outbound links originated from your application to each of the three listed contact numbers on our WhatsApp Multi Agent implementation. We want to have these statistics reflected on a Google Data Studio report we already have prepared, and are attempting to populate with as much data as possible.

    Rgds,
  •  
  •  
    Replied by admin on Wednesday, May 11 2022, 09:44 AM · Hide· #14
    Can you tell me, how usually you put the tracking code? Is it something inserted into the urls?
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
Your Response
Please login first in order for you to submit comments