How do I integrate a form of tracking?

Borlabs Cookie distinguishes between Third-party and First-party cookies. In most cases you can ignore First-party cookies, as this field is only necessary for you if you use e.g. tracking code of a self-hosted Piwik/Matomo. In all other cases, only the fields under Third-party cookies are relevant to you. Once you have entered and saved your code or tracking IDs in the corresponding fields, tracking is integrated via Borlabs Cookie and the user receives the cookie selection box.

Borlabs Cookie only blocks JavaScript that is stored in the Borlabs Cookie backend or masked by the shortcodes provided by Borlabs Cookie. JavaScript code stored in the backend is placed at the end in the footer of the website.

Cookie option 1: Third-party cookies

This concerns Google Analytics and Facebook Pixel, but also Google Adsense and Google Tag Manager, as well as all other third party cookies.

Google Analytics user

If you want to use Google Analytics, make sure you remove any previously used code for Google Analytics. Enter your tracking ID in the Google Analytics Tracking-ID field under Cookie option 1: Third-party cookies, save and Borlabs Cookie will now automatically implement the appropriate code, including IP anonymization (the anonymizeIp parameter is enabled by default).

If you integrate Google Analytics via the Google Tag Manager, the field Google Analytics Tracking-ID must be empty.

Facebook Pixel user

Enter your tracking ID in the Facebook Pixel-ID field under Cookie option 1: Third-party cookies, save and Borlabs Cookie will now automatically implement the appropriate code.

How can I check if the setup worked?

To verify that Borlabs Cookie has been successfully set up, we recommend the tool Ghostery. You can find out how to set up the tool and check your page in the article: How can I check if the setup worked?

Further options

Block content before selection

The Cookie box blocked xontent option can be used to prevent visitors from accessing the content of the page as long as they have not selected a cookie selection box option.

Show cookie box

With the Show cookie box option set to Automatic the cookie box only displays if you have inserted at least one JavaScript code in the above fields, entered a Google Analytics tracking ID or a Facebook pixel ID.

With the Show cookie box option set to Always, you can always display the cookie box, even if you have not entered any code or short code. This is only useful in very rare cases and should therefore remain deactivated.

With the Show cookie box option set to Never, the cookie box will not be displayed.

Block special content

With the shortcode [borlabs_cookie_blocked_content title="Your title"]] Your blocked content[/borlabs_cookie_blocked_content] you can block any content, similar to iframes. This function is not bound to one of the selectable options of the cookie selection box - but this can be activated optionally if required (including all iframes). See Automatically reload blocked content below.

Recent articles

We create customized tools to optimize our client’s processes since 2006, including APIs for ERPs and PSPs. We design products for eCommerce platforms as well as fully-customized WordPress systems and xt:commerce VEYTON systems.