Integrating third-party tools or enhancing the functionality of your TronShop platform often requires the addition of specific code snippets. Whether you're aiming to gain insights through tools like Google Analytics, tweak visual elements, or optimize user interactions, understanding how to correctly insert these scripts is essential.
In this guide, we'll walk you through the process of adding scripts to your TronShop, explain the significance of script targets and positions, and provide avenues for assistance if you encounter any challenges.
On This Page
Adding a script into the code
A lot of marketing tools such a Google Analytics require some code to be inserted. To insert any code into your TronShop, use the External scripts in the section
Settings > Advanced Functions.
Using the “+” button to open a dialog window where you need to name the code and insert the code itself.
For the CSS your code should start <style> and edns </style>
In the new window, you'll need to input the script's Name, select the Script Target, define the Script Position, and provide the actual code. While the Script Cookie Tags for webhooks is optional, all other fields are required.
Grow your business
If you need help customizing your header, then you can hire a PromoTron expert! Tailor Your Online Shop to Perfection, Attract Customers, and Boost Sales. Embrace the Power of Customization Today! Contact us to book online consultation.
Each of these options provides a specific touchpoint within the TronShop Portal to engage with users differently, depending on their actions and status.
Every Page - Every User: This option would integrate the code on every page of the portal, regardless of whether a user is logged in, anonymous, or any other status. This means that every time any user visits any page on the portal, the script will execute.
Every Page - Only Anonymous Users: With this selection, the code will only run for users who are not logged in or identified by the system. This can be useful for scripts intended to engage or prompt unidentified users, like displaying a login or sign-up popup.
Every Page - Only Logged Users: The script will execute only for users who are logged into the portal. This could be beneficial for functions that are only relevant to identified users, like account modifications or special offers for registered members.
Order Confirmation Page: The code will be integrated only on the order confirmation page. This is where users are shown a summary or acknowledgment after making a purchase. Scripts here could be used to offer special deals, gather feedback, or present related items.
Registration Confirm Page: This integrates the script on the page that confirms a user's successful registration. Here, the code could welcome new users, provide them with introductory offers, or guide them to the next steps of their portal journey.
Inquiry Form Page: The script will be placed on the page where users fill out an inquiry form. This can be useful to guide users on how to fill out the form or provide instant answers to frequently asked questions.
Inquiry Form Confirm Page: This runs the code on the page confirming the user's successful submission of an inquiry form. It could be used to thank users for their inquiry, provide an estimated response time, or offer related resources.
Online Print Calculator: This option would integrate the script on a page that allows users to calculate printing costs or requirements. The client's code here could help users understand pricing structures, offer discounts, or provide information on different printing options.
When integrating scripts into a web page, where you place them can affect how they operate and the performance of the webpage. Here's a breakdown of the script positions you mentioned:
In Head Section: When a script is placed in the
<head>section of an HTML document, it means the script will be loaded and executed before the content of the body is rendered.
Before the body ends: Scripts placed just before the closing
</body>tag are loaded and executed after the entire content of the body has been loaded.
Then just click the Save button and your code will be immediately available in the source code of your webshop.
PLEASE TAKE ATTENTION
Every script that is created (either by you or by PromoTron team) and implemented into your TronShop should have a backup. Take extra care when editing the code! If you will manipulate your External Script without the necessary knowledge of HTML/CSS/JS you can compromise its function or even disturb the functionality of the whole Tron-Shop. PromoTron does not take responsibility for any kind of unprofessional intervention in the script code. If anyone on the client's side will disturb the integrity of the code with incorrect editing and handling, we reserve the right to charge a fee for fixing the original functionality of the external script.
Our dedicated support team is just one email away. We're here to guide you through the customization process, ensuring your PromoTron platform is tailored to your exact specifications. The process of customization has never been easier or more accessible. Contact our Support team!