In the premium version, dynamic variables can be used to customize the webhook URL when a user clicks on the WhatsApp icon or button.
Variables Available:
- {url}: The URL of the page where the user clicks on the WhatsApp icon.
- {time}: The exact time when the user clicks on the WhatsApp icon/button.
- {number}: The WhatsApp number assigned to the button (set in the plugin settings). This is especially useful when using features like Random Number or Multi-Agent.
- {title}: The title of the page where the user clicks on the WhatsApp icon.
How to Use:
Instead of manually adding values to the body of the webhook URL, embed these variables directly within the URL as query parameters. The webhook will be called automatically after a user clicks the WhatsApp icon/button, sending the relevant information.
Dynamic Variables:
- Get Values from URL Parameters: Text within single square brackets
[]
will fetch values from the URL parameters. If the parameter does not exist, it returns a blank.
Example:[gclid]
,[utm_source]
. - Get Values from Cookies: Text within double square brackets
[[]]
will fetch values from cookies. If the cookie does not exist, it returns a blank.
Example:[[_ga]]
.
This approach allows the creation of highly customizable webhook URLs, tailored to the user’s specific interaction, ensuring important data is captured effortlessly.