Thank you for the information regarding using custom attributes such as data-ga-ignore="true" on the Search Element.
However, after reviewing the implementation, this solution still requires significant manual work on the user side and is difficult to scale across multiple websites.
The main issue is that GA4 Enhanced Measurement does not natively respect custom attributes like data-ga-ignore . Even if we add the attribute on the X Theme search form, users still need to:
- Configure additional filters manually inside Google Tag Manager (GTM)
- Modify GA4 triggers and conditions
- Potentially disable default GA4 form tracking
- Create custom definitions and reporting logic
- Repeat this setup across every website/property/container
This becomes inconvenient and difficult to maintain, especially for agencies or users managing multiple X Theme websites.
Currently, the proposed setup depends heavily on the GA4/GTM side rather than solving the issue at the theme level.
Our question is:
Would it be possible for X Theme to handle this directly on the frontend/theme side so that GA4 automatically ignores X Theme search elements without requiring users to modify GA4 or GTM configurations?
For example:
- rendering the search UI in a way that GA4 does not classify as a standard form interaction
- adding frontend logic that prevents GA4 from detecting X Theme utility/search forms
- using a non-trackable search implementation
- providing a built-in compatibility mode specifically for GA4
The goal would be:
- normal contact/lead forms still track normally in GA4
- X Theme search/navigation utility forms are automatically ignored
- users do not need to touch GTM/GA4 settings manually
We believe this would provide a much cleaner and more scalable experience for X Theme users.
Thank you.