How to insert Google Analytics
/ Google tag manager
ClickEshop administrator allows you to insert your own HTML / javascript codes and add your website new features.
To insert Google Analytics please follow the steps below:
- sign in to your Google Analytics or Google Tag Manager account where the system generates a code and copy this code (Ctrl+C)
ClickEshop admin
- in clickeshop administration click [Content management] move the mouse to the left and in the left toolbar, click the Global HTML Code - PageFooter / Marketing tab
- insert (CTRL+V) the copied code into the field between the tags <body> </body></html>
- save changes clicking the button [Save]
While using Google Analytics, it is necessary to require customer's consent. More information about cookie consent click here.
Important: External scripts inserted in the Page footer / marketing tab will be executed only if the customer gives the consent. If the customer does not give the consent, the scripts inserted in this tab will not be executed. This tab for scripts also ensures that external scripts are not executed even on sub-pages where the customer's personal data is handled, such as Registration etc. Compliance with the GDPR is recommended to consult with a lawyer.
If you want the scripts to be executed always, you need to put them in the Page footer tab. However, the compliance with the protection of personal data is only on you.
Google tag manager - customer order data processing
System ClickEshop allows you to insert a simple script (a script generated by a third party) into the Global HTML Code (such as Facebook). It also allows a dynamic connection with other systems, where it is necessary to process data from the customer's order and provide this data online to another system (e.g. for Google E-commerce, Facebook Pixel, etc.).
For this purpose, it is recommend to use google tag manager (GTM), where you can easily set the necessary connections. ClickEshop system already contains a dataLayer with necessary events, which is automatically activated for GTM after your connection with Google Tag Manager. Subsequently, you set the events in GTM for Google E-commerce, Facebook Pixel and other affiliate systems.
No programming is required, just set the data layer via GTM. The information obtained from the website can be in GTM provided to another system (e.g. Google E-commerce, Facebook Pixel, etc.), which will evaluate and process this information in accordance with the agreed conditions.
To activate GTM on website please follow the steps described at the beginning of this documentation.