Many app and website owners let customers invite their friends to the product, hoping to achieve an organic uplift. Growth teams want to track these invites and measure their impact on the overall growth, while also answering questions such as:
- Which users drive the most amount of invites?
- How can we acquire more users like them?
- Who should the credit for the invite go to (when relevant)?
With Singular's infrastructure, inviting someone to the app is as simple as sending them a link. But we want to append some data on top of that link (e.g., the user ID of the referring user), and also shorten it so that the information remains private, secure, and unchanged. Shortening also prevents the link from becoming too long and unappealing to users.
The Dynamic Short Links API lets you transform long, parameter-filled Singular Links into shorter, secure and appealing links:
Before: |
|
After: |
|
Creating Dynamic Short Links
1 |
Create a Singular LinkGo to Attribution > Manage Links and create a new link. See the Singular Links FAQ for help. |
||||||||||||||||
2 |
Add Parameters to the LinkOnce you have the link URL, we recommend appending the following parameters. The data you add will be made available to you in reports or exports.
The result may look as follows:
|
||||||||||||||||
3 |
(Optional) Add Custom Passthrough Information to the LinkYou can pass additional information to your app through the tracking link using the "_p" parameter. This parameter can accept a string or a JSON object (as long as it's URL-encoded). For example, say you want to pass the following dynamic information to your app through the tracking link:
You can URL-encode it and append it to the _p parameter in your tracking link:
|
||||||||||||||||
4 |
Retrieve Your Singular SDK API KEYRetrieve your Singular SDK API Key by going to Settings > SDK Keys and copying the value next to "API Key". |
||||||||||||||||
5 |
Create One or More Short LinksUse the Dynamic Short Links API endpoint to create a short link. Note:
|