I have set up code in my Head script for all pages to initialize a Rewardful integration into my website. This successfully initializes Rewardful and the window object contains the referral ID that I need to pass to my Stripe checkout page. I have a button on my page that opens the Stripe checkout page. I cannot figure out how to get the referall ID into the URL for my button because I cannot access the window from the page code. I have tried a custom HTML element on the page but it has it’s own window that does not have the Referral ID from Rewardful so that does not work.
I would really appreciate any help I can get to figure out how to access the referral ID in the page code and be able to pass it into by button URL.
Thanks!