When implementing the Google Tag Manager Tracking ENTERPRISE in conjunction with the Plentymarkets Ceres own Consent Tool, we noticed a pitfall in the implementation, in which almost all new website visitors lacked source/medium information in Google Analytics.
25% (direct) / (none) traffic at Google Analytics is a sure indication that a large segment is simply not being captured correctly.
The reading of the Consent information is stored in the cookie “plenty-shop-cookie”. However, this new information of the Consent gift is no longer automatically transmitted to the Google Tag Manager during this page view and so it does not come through a new read of the Consent information. Here is the (faulty) process:
- User comes to the page, no pixel fires.
- User gives Consent, nothing happens.
- User clicks on page 2 of his Jorney, which fires pixels, but the information from which referrer he comes has already disappeared.
But the actual process should be:
- User comes back to the site, no pixel fires
- User gives Consent, another event (consent_changed) takes place
- consent_changed then triggers the corresponding pixels in accordance with the user’s consent, together with a re-reading of the cookie.
The timeout is necessary to give the save click the necessary time to set the cookie so that it can be read again.
The script is stored as html tag and executed when clicking on the “Save” or “All Accept” button. So if the user changes his or her opinion, we will receive the click, reread the cookie and, if necessary, execute the scripts.