Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-12 19:55:51 +07:00
commit e2f9535a05
7 changed files with 27 additions and 4 deletions

View file

@ -17,6 +17,10 @@ object TangemSiteUrlBuilder {
return "utm_source=tangem-app&utm_medium=app$utmCampaignPart$utmContent$appInstanceIdPart"
}
fun getRefCodeTag(refCode: String?): String {
return refCode?.let { "promocode=$it" }.orEmpty()
}
suspend fun url(path: String, campaign: String): String {
val normalizedPath = path.trim('/')
return "https://tangem.com/$normalizedPath?${getUtmTags(campaign)}"