We have Piwik Pro on a large number of sites we host. The consent form text is showing up in Google search results when the site owner hasn’t added a meta description to the page. Is there an easy way to get the consent form text to not show up as the meta description in Google’s search results besides telling all the sites they just need to add a meta description?
We’re having this same issue, but our sites have meta descriptions. Hoping Piwik finds a solution to this right away.
Hi All,
You could try to fire script like this:
<script>
document.getElementById("ppms_cm_consent_popup_{{ Site ID }}")?.setAttribute("data-nosnippet", "");
</script>
Where {{ Site ID }} is the site id value for the site from which the Piwik PRO consent is being loaded. Here’s a guide on how to find it: Where can I find my site or app ID? | Piwik PRO help center
And the trigger could be element presence with this selector:
#ppms_cm_consent_popup_{{ Site ID }}
(again with replaced {{ Site ID }} by the actual site id.
Let me know if this solution worked for you
Best,
Oliwer