Skip to content
Installation
Linker

Linker

CookieHub's linker feature allows for the passing of user consent information to other domains via query string parameters. This can be useful for websites that use multiple domains or subdomains, as it ensures that user consent is shared across all of them.

To enable the linker feature, you can either change the cpm variable in the CookieHub implementation script, or add a comma-separated list of domains to enable the linker for in the Linker field in the CookieHub tag in Google Tag Manager.

When a user clicks on a link that links to a domain specified in the linker settings, CookieHub reads the user's consent information and passes it as a query string parameter. This allows the receiving domain to know the user's consent preferences without requiring the user to provide consent again.

As of CookieHub 2.6.2 the Linker feature only forwards user consents if all categories were allowed.

Here's a sample showing how to enable linker for the domain dash.cookiehub.com:

<script src="https://cdn.cookiehub.eu/c2/9f2842b1.js"></script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(event) {
var cpm = {
    linker: ["dash.cookiehub.com"]
};
window.cookiehub.load(cpm);
});
</script>
Last updated on