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

How to extract URL fragments without hash (#) in ClickHouse ®

Blog post from Tinybird

Post Details
Company
Date Published
Author
Cameron Archer
Word Count
2,178
Company Posts That Month
81
Language
English
Hacker News Points
-
Post removed?
No
Summary

URL fragments, the part of a web address following the "#" symbol, serve as anchor points for navigating specific sections within web pages, but analyzing them requires an effective approach. ClickHouse's fragment() function extracts these fragments by removing the hash symbol, facilitating the analysis of user navigation patterns and page engagement without manual data cleaning. While the function efficiently handles well-formed URLs, regex patterns may be necessary for malformed URLs or older ClickHouse versions lacking this function. For large-scale processing, optimization strategies such as pre-computing fragments or using materialized columns can enhance performance. Additionally, Tinybird's managed ClickHouse platform allows developers to transform fragment extraction into comprehensive user navigation analytics APIs, offering real-time insights into navigation patterns and section engagement while abstracting database management complexities.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 3 6,551 1,245 236 +61%
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.