Trustlytics Support Center > Settings > Tracking-Code > How to insert the tracking code from Trustlytics into Shopify

How to insert the tracking code from Trustlytics into Shopify

At this point, we would like to show you how to integrate the tracking code from Trustlytics into your Shopify shop.



JavaScript Tracking code



Tracking using an image



JavaScript Tracking code

Sign up for Shopify and then select the “Online Store” option in the “Sales channels” section on the left side.

The submenu is now visible. Select the “Themes” option by clicking on it.

In the main window, you can now see an overview of the used theme. Navigate to the right to the “Customize” button and click on it.

Currently, you are in the mode of editing the theme. In the top navigation, there is an icon with three dots (•••). Click on it to open the menu. Please select the option “Edit code” there.

Now look at the left side, there you will find a list of all available files of the theme. Find the file named “theme.liquid” and select it.

In the main window, the HTML code of the file theme.liquid is now displayed. Click anywhere in the code and press the CTRL+F keys on your keyboard. This will open a search window below the code. Enter </head> in the first empty field and then click the “Next” button on the right.

By searching, you end up at the </head> tag

Now take the JavaScript tracking code from Trustlytics, as described in the introduction, and insert it before the closing </head> tag.

Please click on the “Save” button in the top-right corner.

Congratulations! You have successfully integrated the tracking code from Trustlytics into your Shopify store. From now on, Trustlytics will measure the visitors to your website.




Tracking using an image

Sign up for Shopify and then select the “Online Store” option in the “Sales channels” section on the left side.

The submenu is now visible. Select the “Themes” option by clicking on it.

In the main window, you can now see an overview of the used theme. Navigate to the right to the “Customize” button and click on it.

Currently, you are in the mode of editing the theme. In the top navigation, there is an icon with three dots (•••). Click on it to open the menu. Please select the option “Edit code” there.

Now look at the left side, there you will find a list of all available files of the theme. Find the file named “theme.liquid” and select it.

In the main window, the HTML code of the file theme.liquid is now displayed. Click anywhere in the code and press the CTRL+F keys on your keyboard. This will open a search window below the code. Enter <body in the first empty field and then click on the “Next” button on the right.

By searching, you end up at the <body> tag.

Now take the tracking code using an image from Trustlytics, as described in the introduction, and insert it after the opening <body> tag.

Please click on the “Save” button in the top-right corner.

Congratulations! You have successfully integrated the tracking code from Trustlytics into your Shopify store. From now on, Trustlytics will measure the visitors to your website.