Home / Companies / GrowthBook / Blog / Post Details
Content Deep Dive

Automatically track click events from Webflow in Google AnalyticsRemoved

Blog post from GrowthBook

Post Details
Company
Date Published
Author
Graham McNicoll
Word Count
374
Company Posts That Month
2
Language
English
Hacker News Points
-
Post removed?
Yes
Summary

Webflow's integration with Google Analytics does not automatically track button clicks or link events, complicating the understanding of user interactions on a site. The author experimented with scripts from Webflow forums and identified issues such as the need for adding classes and attributes manually, race conditions with ga(), outdated JS styles, and namespace pollution. The author developed a script that automatically adds click events to all anchor tags and supports data-attribute customization for Google Analytics. To implement it, users should add their GA property ID in Webflow settings, enable gtag, and insert the script in the Custom Code section in the Footer Code. This setup facilitates A/B testing by providing a clearer insight into user behavior without extensive manual configuration.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.