Setting data attributes to button

Hello,
I have a button that I am trying to connect to my Chargebee account. (Similar to Stripe)

This is the code they give me to make “any” link pop up the subscription/payment box.
<a href="javascript:void(0)" data-cb-type="checkout" data-cb-plan-id="rapid-website" >subscribe</a>

However, when I publish the site it does nothing. You can see in screenshot I’ve added the data attributes… however the link is supposed to be “javascript:void(0)”, not sure how to do that in Webflow?

What I’ve previously done is use an HTML embed, use that code, and then add the webflow classes to it. However, that seems funky. I’m CERTAIN it can be done by just adding the data attributes (hell, memberstack figured that out :p)

Any ideas? Thanks.


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Ugh… neverminddddddddddd any of this.
Figured it out… the chargebee script has to be installed directly to webflow’s header… not via Google Tag Manager.

It worked perfectly now :slight_smile:

1 Like

Happy you found the solution :webflow_heart: Closing the topic