Pro Version Of Webhooks

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.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.