Sticky CTA
Sticky component that appears at the bottom of a page
Overview

The sticky cta renders an absolute positioned component at the bottom of the page that can be dismissed. The component stores the time it was dismissed in local storage, and will not render for the same placement-id again for 6 hours. If multiple promotions are returned, the cta will rotate through promotions by default. Pass the prop rotate="false" to prevent this behavior.
// custom defined tag
<bam-sticky-cta
property-id="1"
placement-id="1"
context="context">
</bam-stikcy-cta>
SSR AvailableThis component is available for server side rendering.
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
affiliate | affiliate | string | undefined | |
affiliateType | affiliate-type | string | undefined | |
age | age | number | undefined | |
context | context | (required) | string | undefined |
ctaType | cta-type | string | undefined | |
darkMode | dark-mode | boolean | false | |
defer | defer | boolean | undefined | |
devMode | dev-mode | boolean | false | |
deviceType | device-type | "android" | "desktop" | "ios" | "mobile" | undefined | |
gameId | game-id | number | undefined | |
hideUnderage | hide-underage | boolean | false | |
internalId | internal-id | string | undefined | |
isBetsyncUser | is-betsync-user | boolean | undefined | |
isLoggedIn | is-logged-in | boolean | undefined | |
isMobile | is-mobile | boolean | undefined | |
league | league | string | undefined | |
location | location | string | undefined | |
pageSlug | page-slug | string | undefined | |
placementId | placement-id | (required) | number | undefined |
propertyId | property-id | (required) | number | undefined |
rotate | rotate | boolean | true | |
rotateTime | rotate-time | number | DEFAULT_ROTATE_TIME | |
showOnScroll | show-on-scroll | When set to 'true', user must scroll 5% of the page before this appears, fades in | boolean | false |
sponsorSlug | sponsor-slug | string | undefined | |
subdivision | subdivision | number | undefined | |
subscriptionTier | subscription-tier | 0 | 1 | 2 | 3 | undefined | |
terms | terms | "affiliate" | "geo" | 'geo' | |
userParentBookIds | user-parent-book-ids | string | undefined | |
wasPro | was-pro | boolean | undefined |