Posthog consent management

Third-party service
Consent-controlled integration
Posthog
No cookie listed Privacy policy
service posthog
23.6k
requests / 30 days

46.54% consent


Posthog: cookies and consent management

Posthog is a third-party service that can be integrated into a website. Activating it may involve data exchanges with the provider or browser-side storage mechanisms.

When Posthog requires visitor consent, tarteaucitron can condition its activation on the choice made through the consent interface.

Managing Posthog with tarteaucitron

When Posthog is integrated through tarteaucitron, its activation is managed according to the visitor's consent choice. The service can therefore be loaded only when the corresponding permission has been granted and the visitor can later change this choice through the consent interface.

Cookies and storage used by Posthog

No cookie name is currently declared in the tarteaucitron integration for Posthog. This does not necessarily mean that the service processes no data or uses no other browser storage mechanism.

Configuring Posthog

Add the following code to your website after initializing tarteaucitron. Replace the example values with those provided by Posthog.

<script>
tarteaucitron.user.posthogApiKey = 'apiKey';
(tarteaucitron.job = tarteaucitron.job || []).push('posthog');
</script>

Additional code

The following code can already be present on your website and should be kept where the service is used.

<script>tarteaucitron.user.posthogHost = 'host';</script>

Code to remove

Default HTML code to remove from your website:

<script> !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]); posthog.init('apiKey', {api_host: 'host'}) </script>

For a complete guide, read the documentation to install tarteaucitron.js.

Privacy information

For detailed information about the processing of data by Posthog, cookies and applicable retention periods, refer to the documentation or privacy policy published by the service provider:

Posthog privacy information

Frequently asked questions about Posthog

Does Posthog require consent?

Whether Posthog requires consent depends on the data processed, tracking technologies used and the purpose of the service.

How does tarteaucitron block Posthog?

tarteaucitron controls the activation of Posthog according to the consent choice recorded for the visitor. The service code is triggered through tarteaucitron instead of being loaded independently from the consent manager.