-
Notifications
You must be signed in to change notification settings - Fork 10
docs: explain how to track clicks on HSM Dynamic URL buttons #642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SangeetaMishr
wants to merge
3
commits into
main
Choose a base branch
from
docs/hsm-dynamic-url-click-tracking
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| <tr> | ||
| <td><b>10 minutes read</b></td> | ||
| <td style={{ paddingLeft: '40px' }}><b>Level: Beginner</b></td> | ||
| <td style={{ paddingLeft: '40px' }}><b>Last Updated: April 2026</b></td> | ||
| <td style={{ paddingLeft: '40px' }}><b>Last Updated: July 2026</b></td> | ||
| </tr> | ||
| </table> | ||
| </h3> | ||
|
|
@@ -139,6 +139,18 @@ Here's a simple explanation with examples: | |
|
|
||
| <img width="503" alt="Screenshot 2024-07-01 at 5 13 14 PM" src="https://github.com/glific/docs/assets/141305477/09ec727f-46bf-4242-a95a-caebb6763491"/> | ||
|
|
||
| Tracking clicks on a URL button | ||
|
|
||
| WhatsApp does not send any signal back to Glific when a contact taps a URL button - the button simply opens the link on the contact's phone. Because of this, Glific has no way to show you how many contacts clicked a Static or Dynamic URL button. | ||
|
|
||
| To track clicks yourself, don't point the button straight at your destination page. Instead: | ||
|
|
||
| - Use a Dynamic URL to add a unique value for each contact to the link, for example the contact's ID: `https://yourdomain.org/track/{{1}}` | ||
| - Point this link to a redirect page you control, or a link-tracking tool (such as Bitly or Rebrandly), that records every click along with that unique value before sending the contact on to your real destination page. | ||
| - Match the recorded clicks back to your contacts using the unique value, to see who opened the link. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Say “clicked,” not “opened.” A redirect records a click/request; it does not prove that the destination page was opened or consumed. Change this to “see which contacts clicked the link.” 🤖 Prompt for AI Agents |
||
|
|
||
| Please Note : If you need the flow itself to react to whether a contact engaged (for example, to send a different follow-up message), use Quick Reply buttons instead of a URL button. Unlike URL buttons, Quick Reply taps send a response back into the flow and can be captured with a `Wait for Response` node. | ||
|
|
||
| j. `Category` - Select the most relevant category from the dropdown. Ex. Utility or Marketing. | ||
|
|
||
| - Utility: Used for transactional messages to keep your customers in the loop with essential order updates, shipping status, about their accounts, orders, appointment reminders, and important alerts. | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Avoid putting a raw contact ID in the tracking URL.
This can expose a stable user identifier in browser history, request logs, and third-party tracking analytics. Recommend an opaque, random or signed token mapped server-side, and explicitly caution against including PII in the URL.
Proposed wording
📝 Committable suggestion
🤖 Prompt for AI Agents