Deep linking
Deep linking lets you open the "My Rewards modal" - optionally targeting a specific menu item - from anywhere on your site. Typical uses include promo banners, email CTAs, and in-site navigation that takes players directly to items such as Free Spins, Missions, or Shop.
Configuration
- Set a slug on the menu item
In the Rewards menu configuration inside FT CRM, each menu item has a slug field. The slug is what you reference when deep linking. It is optional - leave it blank for menu items you don't need to link to directly.
- Enable URL hash variables (only if using Approach 1)
URL hash variables must be enabled in Branding Studio before hash-based deep links will work. Element-based and event-based approaches do not require this setting.
Integration approaches
There are three ways to trigger a deep link. Choose whichever fits your frontend.
Approach 1: URL hash variable
Append a hash to any URL on your site: https://your-site.com/#rewards.menu.slug
Replace with the slug configured in FT CRM. For example, #rewards.menu.tournaments opens My Rewards and the menu item with the slug tournaments.
To open My Rewards without targeting a specific item, use: https://your-site.com/#rewards.open
Approach 2: Rewards toggle element
If you're already using the element, add the menu-slug attribute to deep link:
Approach 3: JavaScript event
Dispatch a custom event to open My Rewards at a specific menu item:
Omit menuSlug to open My Rewards without targeting an item :