Implementing the Base Barion Pixel: Difference between revisions

From Barion Documentation
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
Afterwards, the exact details differ based on the platform that your webshop uses.
Afterwards, the exact details differ based on the platform that your webshop uses.


== Static HTML page ==
= Static HTML page =
If your site is served as a sigle HTML page or a collection of HTML pages with no server side templating, paste the Base Barion Pixel code as follows into the `<head>` tag of your website. The higher it is in the page markup, the better, since our code takes a minimal time to run, as the majority of Barion Pixel functions are loaded from an external source, which loads asynctronously, so that it won't block your page from loading or cause slowdowns.
If your site is served as a sigle HTML page or a collection of HTML pages with no server side templating, paste the Base Barion Pixel code as follows into the `<head>` tag of your website. The higher it is in the page markup, the better, since our code takes a minimal time to run, as the majority of Barion Pixel functions are loaded from an external source, which loads asynctronously, so that it won't block your page from loading or cause slowdowns.

Revision as of 16:23, 28 January 2020

Implementing the Base Barion Pixel

Getting Ready

The first prerequisite to implement the Base Barion Pixel irrespective of your webshop is knowing your your Barion Pixel ID.

Afterwards, the exact details differ based on the platform that your webshop uses.

Static HTML page

If your site is served as a sigle HTML page or a collection of HTML pages with no server side templating, paste the Base Barion Pixel code as follows into the `<head>` tag of your website. The higher it is in the page markup, the better, since our code takes a minimal time to run, as the majority of Barion Pixel functions are loaded from an external source, which loads asynctronously, so that it won't block your page from loading or cause slowdowns.