Se você tem dificuldade em mensurar quantas pessoas clicam no botão de whatsapp, esta opção facilita seu mensuração.
Este script faz o seguinte:
- Define uma função getParameterByName para obter parâmetros da URL. Essa função analisa a URL atual em busca dos parâmetros especificados.
- Obtém os valores dos parâmetros "phone" e "text" da URL usando a função getParameterByName.
- Aguarda 3 segundos (3000 milissegundos) usando setTimeout.
- Após os 3 segundos, redireciona para a página do WhatsApp com os parâmetros "phone" e "text" recebidos da URL.
- Você pode incorporar esse código em uma página HTML e, em seguida, acessar a página da seguinte maneira:
http://seusite.com/suapagina.html?phone=xxx&text=xxx
Lembre-se de substituir http://seusite.com/suapagina.html pelo URL real da sua página HTML e definir os valores apropriados para "xxx" nos parâmetros "phone" e "text".
If you have difficulty measuring how many people click the WhatsApp button, this option facilitates your measurement.
This script does the following:
- Defines a GetParameterbyname function for URL parameters. This function analyzes the current URL in search of the specified parameters.
- Get the values of the "Phone" and "text" parameters of the URL using the GetParameterbyname function.
- Wait 3 seconds (3000 milliseconds) using settimeout.
- After 3 seconds, redirects to the WhatsApp page with the "Phone" and "Text" parameters received from the URL.
- You can incorporate this code into an HTML page and then access the page as follows:
http://seusite.com/suapagina.html?phone=xxx&text=xxx
Remember to replace http://seusite.com/suapagina.html with the real URL of your HTML page and define the appropriate values for "XXX" in the "Phone" and "Text" parameters.