DevEx & Business

Share links: knowing which network the player came from, and giving them something for it

An ordinary link says nothing about who clicked. A share link tracks the origin, shows which channel brings the most engaged player — and can carry a piece of data your game reads on join.

by Gustavo Cantino8 min readBeginner

Produced with AI from the sources cited below and checked by automated verification against those same sources. After it was published, the editor read the full text. · Reviewed by Gustavo Cantino, 11/24/26 Editorial Policy

Typographic plate with the DevEx & Business category in large type, the beginner level below it, and a field of vertical lime green bars on a dark background.

You promote the game in four places and players arrive. How many came from each? With an ordinary link, the answer is: there is no way to know.

Share links solve that, and they do one more thing almost nobody uses — they can carry a piece of data your game reads at the moment the person joins.

The problem

The definition: share links are unique, trackable links that generate metrics for tracking and growing off-platform user acquisition.

The phrase "off-platform" delimits the use. They do not measure who arrived through Roblox search or through recommendations — they measure who came from outside: a video, a social network, a messaging group, a website.

The available metrics include how many new users reached the game's page through a link and — this is the one that decides budget — which off-platform channel brought the most engaged users.

Notice the difference between the two. The first counts clicks; the second counts quality. A channel that brings a thousand people who leave in thirty seconds and another that brings a hundred who stay are opposite things, and without a separate link per channel both become one line in the dashboard.

And there is no limit to how many links you can create per game. The documentation recommends the obvious consequence: creating different links for different channels helps track the metrics better.

Step by step

1. Check the permission. You can only create a link for a game you own. In a group game there are two requirements: being a member with the permission to create and configure share links, and the link has to be created from the group's account.

That second part catches people who have the permission and create it from their personal account out of habit — the link works, and it is not the group's link.

2. Go to the dashboard. In Creations, the Share Links tab.

3. Name the campaign. You enter a unique campaign name and choose the game.

The name is yours alone — it does not appear to whoever clicks. Since there is no limit on links and the name is what you will read in the dashboard months later, a convention is worth having: channel, month, and what was being promoted.

4. Decide about LaunchData. To use your own LaunchData, you switch the option on and enter the parameter. It is the optional step that turns the link from a measurement into a campaign, and it is the artifact's subject.

5. Generate. The link is generated immediately and is ready to share.

Why the distinction between a click and a join matters. The metrics measure who reached the game's page through the link. Between reaching the page and joining the game there is a decision by the visitor — they look at the images, read the description, see how many people are playing, and decide.

That makes the link a diagnostic tool for two things at once. If a channel brings a lot of people to the page and few of them join, the problem is not the channel: it is the page. If it brings few people to the page, the problem is the promotion on that channel.

They are opposite conclusions, with opposite actions, and without a separate link per channel both end up mixed into an average that suggests nothing.

6. Promote with the right link. It sounds obvious and it is the step that fails most: the link only measures what passes through it, and a post published with the old link appears nowhere.

It is worth noting that the link changes nothing for whoever clicks. The person arrives at the game's normal page, looking as it always does; the tracking is invisible on their side. Which means there is no experience cost to using a trackable link instead of an ordinary one — making it hard to justify not using one.

The artifact

The script below reads the LaunchData that came in the link and grants the corresponding benefit.

The mechanism: the data arrives through the player's GetJoinData, on the server, at the moment they join. From there it is your code.

Two of the artifact's decisions deserve explaining.

The first is that the table is in charge. The LaunchData says which campaign, and what each campaign gives is decided on the server, by a table. Never the other way round — a LaunchData saying "give 5000 coins" would be an instruction coming from outside your control.

The second is that the benefit is granted once per player per campaign, with the record written after the delivery. Without that, leaving and rejoining through the same link earns the prize again, indefinitely.

It is worth noting what the feature does not do: it does not measure who arrived from inside the platform. Recommendations, search, a friend playing, a category page — none of that goes through a share link, and it is normally most of the traffic of a game that is already moving. The link measures the slice coming from outside, which is precisely the one you control.

Before the mistakes, it is worth understanding why the documentation insists on a unique campaign name. The name is the key by which the dashboard groups the data, and it is also the only description that will exist of that link once the original post is gone. Six months later, looking at a line that performed well, the name is all that says what it was.

Common mistakes

One link for everything. It is the mistake that cancels the whole feature. A single link shared across four channels measures four channels added together — which is exactly the information you already had. Since there is no limit on links, there is no reason to economise.

Trusting the LaunchData. It is content that crosses the boundary and reaches your server. Treating it as a command opens a door; treating it as a lookup key into a table of yours closes it.

The difference shows in an example: LaunchData with the value tiktok_october, with the table deciding what that is worth, is safe. LaunchData carrying an amount of coins, read directly, is not.

Granting without recording. The benefit has to be marked as redeemed, and the mark has to be written after the delivery succeeded. Writing it before trades "delivering twice" for "promising and not delivering", which is worse.

Reading it on the client. The LaunchData reaches the player, and it is tempting to read it on the client to show a welcome message. The message can be the client's; the granting belongs to the server.

Creating it from the wrong account. Already mentioned, and worth repeating because it raises no error: in a group game, a link created from a personal account exists and works — it just is not the group's, and its metrics do not appear where the team looks.

A throwaway campaign name. Since the name is the identifier you will read in the dashboard, a name like "test" or "link2" is information lost. And since there is no way to know afterwards which link went where, the name is the only memory that exists.

It is also worth standardising how the link is used on each channel, because the data is only good if the discipline is. A TikTok link used once in a video and forgotten for the rest of the week measures that video, not the channel. The rule that works: one link per channel, always the same one, on every post from that channel — and a new link only when the campaign is genuinely a different one.

Expecting a big number. Off-platform acquisition is usually a small slice of the total, even in a game doing well. Seeing dozens where you expected thousands leads people to conclude the feature does not work — when what it is showing is that channel's real size, which was previously hidden inside a larger number.

Next step

Today's exercise takes ten minutes: list the channels where your game is promoted and create one link per channel, with a standardised name. From the next video or post on, each one uses its own.

Two weeks later, the dashboard answers the question that decides where to invest effort — and the answer usually contradicts intuition, because volume and engagement rarely come from the same place.

After that, it is worth using LaunchData in a real campaign. A welcome item exclusive to whoever joined through a specific link is the closest thing to a promotion the platform allows — and it creates, as a bonus, a second measurement: how many people actually joined through the link, and not merely clicked it.

And one calendar care is worth taking: a campaign with a benefit should have an end date decided before it starts. A forgotten LaunchData left switched on is a prize still being handed out months after the campaign ended.

Sources

How we correct mistakes

Ready-to-use artifact

Reading the link's LaunchData and granting the benefit only once (ServerScriptService)
lua
-- ServerScriptService: reading the LaunchData that came in the link and
-- granting the corresponding benefit.
--
-- The data arrives through the player's GetJoinData. Two things to keep
-- in mind:
--
--   1. IT COMES FROM THE CLIENT, indirectly. Treat it as untrusted
--      input: the value says WHICH campaign, and what each campaign
--      gives is decided HERE, by a table of yours.
--   2. The benefit has to be granted ONCE. Without that, leaving and
--      rejoining through the same link earns the prize again.

local Players = game:GetService("Players")
local DataStoreService = game:GetService("DataStoreService")

local redemptions = DataStoreService:GetDataStore("RedeemedCampaigns")

-- The table is in charge. An unknown LaunchData earns nothing -- and it
-- does not need to: joining through a link with no campaign simply means
-- no extra.
local CAMPAIGNS = {
	tiktok_october = { coins = 100, message = "Welcome from TikTok!" },
	discord_launch = { coins = 250, message = "Welcome from Discord!" },
}

local function giveCoins(player, amount)
	local stats = player:FindFirstChild("leaderstats")
	local coins = stats and stats:FindFirstChild("Coins")
	if not coins then
		return false
	end
	coins.Value += amount
	return true
end

local function onJoin(player)
	local ok, data = pcall(function()
		return player:GetJoinData()
	end)
	if not ok or type(data) ~= "table" then
		return
	end

	local key = data.LaunchData
	if type(key) ~= "string" or key == "" then
		return -- joined without a link, or with no LaunchData: normal
	end

	local campaign = CAMPAIGNS[key]
	if not campaign then
		-- an old campaign or an unexpected value: not an error, just no benefit
		return
	end

	-- once per player PER CAMPAIGN
	local mark = player.UserId .. "_" .. key
	local alreadyTaken
	local okRead = pcall(function()
		alreadyTaken = redemptions:GetAsync(mark)
	end)
	if not okRead or alreadyTaken then
		return
	end

	if not giveCoins(player, campaign.coins) then
		return -- delivery failed: do NOT mark it as redeemed
	end

	pcall(function()
		redemptions:SetAsync(mark, os.time())
	end)

	print(campaign.message .. " (" .. player.Name .. ")")
end

Players.PlayerAdded:Connect(function(player)
	-- leaderstats may not exist yet at the instant of joining
	task.defer(onJoin, player)
end)
In this article

Keep reading