...
We will explain here the fullest solution, where you also track which users do share your app, and which particular new user came from which referrer. If you need a simple share function, without tracking, you will also be told, where to stop.
Step 1 - Add a button to start share
This buttons are often denoted with something like this - or this
You can find a list of suitable Share buttons, which you can use is here - https://fontawesome.com/icons?d=gallery&q=share
Here is an Article on How to Add Icons to buttons.
Step 2 - Add a Custom JS Action to the button
Below is the sample code to add into the Custom JS -
|
---|
NOTE the URL link above (line 5) - needs to lead to the place in your app, where you want to land all the new users. It can be a certain screen in your app, or a Common Access Link from the Security section of the app, or a screen in a landing-page kind of app, so not the same one from where sharing is made. All depends on the task at hand.
...
#Object:objid# is a hashtag to get the right column from Objects. But you can use anything, like a phone number, or email or object's UUID (which is better in our opinions, as it is random).
STEP 3 - Recording Referrers into new user's data
This step is only needed when tracking referrers. Each new object will receive this incoming UTM mark with some user data you choose from the user who was a referrer.
...
Use the hashtag designed to pull in data from the URL itself, in this case the UTM marks we created. Full options for this hashtag are explained here - in in Data Refs in App article > Section 4 > "Current URL Route".
...