GA4 - How to clean URL parameters

As we explained in this other blog post sometimes url parameters can give us big problems with cardinality in data and especially now in GA4.

 

Remember that in GA4 high cardinality of data can cause you to run into lines like this in your reports both defaults and scans:

 

GA4 Cardinality

 

Cardinality is the number of unique values assigned to a dimension. There are dimensions with a fixed number of unique values (e.g. Weekday, Device) and others can have a high cardinality (e.g. page path, transaction ID). If a dimension takes more than 500 values per day, it will be considered by GA4 as a high cardinality dimension.

One of google's recommendations to avoid encountering cardinality is to "Limit the collection of data especially those with high cardinality (Ex: URLs or url parameters)". Ya.

But you will agree that many times that cardinality in urls comes from external agents that do not depend on us and that also coincide with ad platforms... Do these url parameters sound familiar to you?

fbclid=oiekhakjdvnkajsd089237498

creative=luesfglknadsnadsnlad989867983

If you run ad campaigns on Google Ads or Meta they are sure to ring a bell

We are going to explain you a way to clean up all those parameters of the urls.

 

The first thing is to identify those parameters.

    1. Create a new scan in GA4.

    2. Add the page path + query string dimension and the views metric.

    3. Apply a filter to the table where the page path dimension contains "?", by default the table displays 10 rows, extend the table to 50 or 100 rows.

GA4 - Exploration query parameters

Now that you know what parameters you want to exclude you go to GTM to the container that manages that property:

  1. Click on Templates and then Search Gallery. GTM - Template & Gallery

  2. In the gallery search engine type Trim Query and click on the solution that appears GTM - Search Template

     

  3. Click on Add to Workspace GTM - Add Template to WS

     

  4. Click Add GTM - Add Template confirm

     

Let's create a new variable:

  1. Go to variables and click on create new.

  2. Under variable type select Trim Query 

  3. Under target URL drop down and select Page URL. By default Queries is selected, if it is not, select this option.

  4. In Add Row add one by one the parameters you want to clean up from the list extracted from GA4.

  5. When you are done click Save. GTM - New variable

And now let's apply this variable. You have two options:

  • You go to each of the GA4 GTM tags and add a new parameter that overwrites the page_location with the variable you just created GTM - Add parameter to tag config
  • Create a new variable of type Tag Event Settings and apply it on all event tags . GTM - Tag events settings

And for the moment this is the best way to clean up those annoying urls that can also cause cardinality problems in reports.

And for the moment this is the best way to clean up those annoying urls that can also cause cardinality problems in reports.

If you want another day we will explain you how to clean this but in your Looker Studio reports.

PREVIOUS
NEXT

TIPS DE EXPERTOS

Suscríbete para impulsar tu negocio.

LATESTS ARTICLES

Framework for Building Trustworthy and Efficient AI Agents

The Leap from Assistants to Intelligent Agents

For years, artificial intelligence tools have operated mainly as assistants: systems capable of answering questions, drafting texts, or handling specific tasks. However, in recent months, we’ve started to witness a fundamental shift. Intelligent agents have emerged—autonomous systems capable of pursuing complex goals without constant supervision.

ChatGPT Agent: the AI that thinks and acts is now in your business

OpenAI has just launched one of its most impactful updates since GPT-4: ChatGPT Agent, a leap that takes language models far beyond simple text generation. This is no longer about chatting. It’s about AI that can reason, make decisions, and carry out real-world tasks autonomously. For companies already using CRMs, analytics, or marketing automation, this changes the game entirely.

How to implement AI in Marketing to Achieve Real Results

Introduction: From Superficial Adoption to Smart Implementation

 

Artificial intelligence (AI) is already part of the daily life of marketing teams. Tools like ChatGPT or Gemini have become almost indispensable. However, many brands have yet to make the leap from occasional use to strategic integration of these technologies.

In this article from Hike & Foxter, we explore how to implement AI intelligently to improve processes, elevate personalization, and directly connect with business KPIs.

The Current Landscape: Are We Really Integrating AI? 

According to the report "The State of AI in Marketing" by Search Engine Journal, although 91% of marketers already use some AI tool, only a fraction have deeply integrated these solutions into their strategies. Most limit themselves to using tools like ChatGPT to generate ideas or draft content, without linking these efforts to business goals.

Integrating AI is not about using it as a magic solution for isolated tasks. It involves redesigning entire processes, transforming decision-making, and rethinking the customer experience from the first contact to conversion and retention.

Is ChatGPT Enough? What Widespread Adoption Reveals 

83% of surveyed marketers use ChatGPT as a central tool. However, the real impact is limited when not paired with other complementary solutions.

The key is tool literacy:

  • Understanding what each solution can (and can't) do

  • Knowing how they integrate with each other and platforms like CRM

  • Spotting opportunities to redesign processes, not just tasks

🔎 Useful fact: Teams with an integrated AI stack generate 3.2 times more personalized content than those who rely on a single tool.

kickstart-newsletter-sej-report

Recommended AI Stack: Tools by Objective

Objective Basic Tool Advanced Tool Success Metric
Content Generation ChatGPT Jasper + CRM CTR +25%
Personalization Static Templates Dynamic content + AI Conversion +40%
Predictive Analytics Google Analytics Machine Learning in CRM Lead scoring +60%

 

A solid AI stack should not only include a variety of tools but also be connected and centered around the CRM. Only then can real results be tracked.

Content Is Still King… But Needs Purpose
 

64.5% of respondents highlight content creation as the area most benefited by AI. But more content isn’t always better. The difference between noise and value lies in the strategy.

How to Create AI-Generated Content That Actually Works:

  1. Well-defined prompts: with clear intent and goal

  2. Business context: using CRM data, buying behaviors, and ideal customer profiles

  3. Clear editorial guidelines: with tone, voice, and consistent structure

Measurement: From Efficiency to Strategic Impact 

One of the most common pitfalls in AI integration is not measuring its real impact. While 87% measure operational metrics like speed or content volume, only 13% evaluate strategic indicators such as LTV or MQL to SQL conversion.

AI Metrics Pyramid

  1. Tactical: time saved, content volume

  2. Engagement: CTR, time on page

  3. Strategic: conversion rate, revenue attributed to AI

💡 Recommendation: connect all AI-generated content with real CRM data for comprehensive measurement.

Reputation and Quality Control: New Challenges 

As AI use intensifies in marketing, so do the risks: errors, misinformation, inconsistent tone. Poor implementation can damage brand reputation in minutes.

Basic Policies for Safe AI Use:

  • Mandatory human review before publishing AI-generated content

  • Clear labeling of AI-assisted content

  • Ongoing training in “prompt literacy” and emerging tools

Teams and Talent: Evolution, Not Replacement 

Only 4.5% of companies have reduced staff after adopting AI. Why? Because AI doesn’t eliminate roles—it redefines them. The most valued profiles today are:

  • Content strategists with technical skills

  • CRM managers who understand automation

  • Marketing ops with cross-functional vision

📘 AI requires new skills, not layoffs. Investing in trained talent is the best long-term strategy.

Immediate Future: SEO, Personalization, and Content Overload 

With more content circulating, the challenge is to stand out. Posting is no longer enough. The focus must be on:

  • Optimization for generative systems like Gemini or Perplexity

  • Structured, verifiable, and semantically clear content

  • An editorial strategy that’s also a data strategy

Conclusion: Smart AI Integration Is the New Competitive Advantage 

AI is no longer optional. But effective implementation requires more than testing tools. It demands strategic vision, connection to business data, and a human team capable of guiding the process.

Your next step: Evaluate your AI stack, identify gaps in CRM integration, and define new strategic KPIs.

Are you ready to make AI elevate your marketing strategy instead of just automating it?

Is your CRM data ready for AI? Only 24% say yes

On July 10, 2025, Validity released the State of CRM Data Management in 2025 report, based on a survey of over 600 professionals from the US, UK, and Australia. The conclusion is clear: most companies want to implement artificial intelligence, but their CRM systems aren't ready.

data
Mallorca 184, 08036
Barcelona, Spain