Source always assigned as direct in Google Analytics when no interaction with consent banner
AnsweredHi,
For various clients we've deployed Cookiebot through Google Tag Manager, at both Magento as WordPress/WooCommerce sites. Active consent method is applied, with "Page refresh" checked.
However, only with Magento shops the source in Google Analytics is always assigned as direct when visitors have no interaction with the consent banner, but click on a menu item for instance with which the Google Analytics cookie is placed. Even though users come from organic or paid traffic. When they click on the "OK" button in the banner, the correct source/medium combination is assigned.
With WordPress sites or WooCommerce shops this problem doesn't occur, only with Magento shops.
Cookiebot integration through Google Tag Manager is applied in the same way. Can someone explain why this only happens with Magento shops and how to resolve this?
Thanks in advance!
-
Hi Jorrit,
There could be similar behavior if a link in a page is not an <a> tag, but another type of tag with an onclick-event which navigates the visitor to a new page. The reason is Cookiebot will only automatically submit Active Consent on a click by default - and wait for Google Analytics(GA) to register the visit - when the visitor clicks an <a> tag. If links are not <a> tag, then the same behavior can be applied to other website elements by adding the CSS class "cookieconsent-implied-trigger" on all elements that should trigger an Active Consent and wait for the page visit to register in GA.
Regards,
Elina0
Please sign in to leave a comment.
Comments
1 comment