Solved

How do I track button clicks (CTAs) on Webflow?

  • 4 January 2023
  • 2 replies
  • 973 views

Hi everyone!

 

We’re planning to transit our website to be hosted on Webflow so we’re trying to figure out the tracking migration plan as well.

I’ve found this useful medium blog about tracking the page views and installing the Amplitude snippets. But I’m wondering how I can further track button clicks on pages (CTAs) or even forms submissions?

 

I’d appreciate any help,

Cheers,

icon

Best answer by eddie.gaona 6 January 2023, 22:59

View original

2 replies

Userlevel 5
Badge +9

Hello @vivy happy New Year!

To my understanding, you are looking to instrument button clicks and page views into Amplitude. I assume that your product is a website which you can leverage the Marketing Analytics SDK(An extension of the Browser SDK) which has built in functionality to track page views, here.

For other events that are not out-of-the-box such as button clicks you will need to leverage the SDKs `track` method to ingest data. So within your code you would do something like:

track('Button Clicked');

This will then send the event name “Button Clicked” into Amplitude.

Where do we add this code in Webflow? Is there some way to get access to the underlying javascript?

Reply