We are using Stape.io and are encountering a situation where a lot of our traffic is being attributed to direct source.
We have a Varnish VLC file, where Varnish removes the GCLID parameter to minimize the cache objects.
Could that be the reason why we have too much traffic attributed as none/direct traffic in GA4?
Best regards,
Jesper
Remove Google gclid parameters to minimize the cache objects
set req.url = regsuball(req.url,"\?gclid=[^&]+$","");
set req.url = regsuball(req.url,"\?gclid=[^&]+&","?");
set req.url = regsuball(req.url,"&gclid=[^&]+","");
The banner looks fine. Often the problem you describe is due to the fact that the user lands on the site - ignores the consent because the banner is small somewhere in the corner (tags don’t work) and accepts the consent after going to some next pages (so his referrer and/or url parameters are lost).
I would recommend checking to see if you have any similar cases.
It’s also worth checking if you have double redirects, which can cause the source to be lost.
How can we test if the GCLID is sent to GA4/GADS
The easiest thing to do:
Add a test parameter like gclid=test123 to the url to set the cookie and simulate landing on the site from the adverts.
Trigger any conversion you have
In preview mode of the server container, trigger and see the payload of the Google ADS request that goes. Your gclid should be there