How to add custom code in Dash to Cart
Add supported third-party scripts to your storefront from one place.
Admin
Last Update há um mês
Dash to Cart lets merchants add Custom Scripts to their storefront for tools not available as built-in integrations.
Before using Custom Scripts, check whether the service you want is already listed under Storefront Integrations. Dash to Cart currently includes integrations for Google Tag Manager, Google Analytics 4, Meta Pixel, TikTok Pixel, Tawk.to and Hotjar, as well as the option to add your own script.
Step 1: Open Storefront Settings
From your Dash to Cart store dashboard:
Step 2: Name your script
Enter a clear name so you can identify the integration later.
Examples:
Step 3: Choose the script placement
Select the available placement for the script.
For example, the current Custom Script interface can include placements such as:
<body />
Use the placement recommended by the script provider.
If the third-party provider gives specific installation instructions, follow them rather than guessing where to insert the code.
Step 4: Paste the code
Copy the script from the third-party service and paste it into the Code field.
Check that you have copied the complete script, including any opening and closing script tags required by the provider.
Step 5: Save your changes
Save the Custom Script, then save your Storefront settings where required.
After saving, open your storefront and test whether the integration is working as expected.
Can I add more than one custom script?
Dash to Cart supports adding Custom Scripts individually, allowing merchants to organise different integrations by name and placement.
Where a service already has a dedicated Dash to Cart integration, use the dedicated integration instead of adding the same service again as a Custom Script.
How do I remove a custom script?
Open the Custom Script you want to remove and select Remove Script.
Save the Storefront after making the change.
What can Custom Scripts be used for?
Custom Scripts may be useful for third-party tools that provide an embeddable script and are not already available as a dedicated Dash to Cart integration.
Possible examples include:
Compatibility depends on the third-party code itself.
Dash to Cart does not guarantee that every external script will work correctly.
Important security note
Only add code from services you trust.
Third-party scripts can affect storefront behaviour, tracking, performance and customer data. Review the provider’s instructions and privacy requirements before adding code.
If a Custom Script causes unexpected storefront behaviour, remove or disable it and test the storefront again.
Do I need coding knowledge?
You do not need to write code yourself if the third-party provider gives you a ready-to-use script.
However, Custom Scripts are an advanced feature. If you are unsure what a script does or where to place it, check with the service provider or a developer before installing it.
Before using Custom Scripts, check whether the service you want is already listed under Storefront Integrations. Dash to Cart currently includes integrations for Google Tag Manager, Google Analytics 4, Meta Pixel, TikTok Pixel, Tawk.to and Hotjar, as well as the option to add your own script.
Step 1: Open Storefront Settings
From your Dash to Cart store dashboard:
- Go to Settings.
- Select Storefront.
- Scroll to Integrations.
- Select Add Custom Script.
Step 2: Name your script
Enter a clear name so you can identify the integration later.
Examples:
- Customer chat
- Analytics script
- Marketing tracker
- Review widget
Step 3: Choose the script placement
Select the available placement for the script.
For example, the current Custom Script interface can include placements such as:
<body />
Use the placement recommended by the script provider.
If the third-party provider gives specific installation instructions, follow them rather than guessing where to insert the code.
Step 4: Paste the code
Copy the script from the third-party service and paste it into the Code field.
Check that you have copied the complete script, including any opening and closing script tags required by the provider.
Step 5: Save your changes
Save the Custom Script, then save your Storefront settings where required.
After saving, open your storefront and test whether the integration is working as expected.
Can I add more than one custom script?
Dash to Cart supports adding Custom Scripts individually, allowing merchants to organise different integrations by name and placement.
Where a service already has a dedicated Dash to Cart integration, use the dedicated integration instead of adding the same service again as a Custom Script.
How do I remove a custom script?
Open the Custom Script you want to remove and select Remove Script.
Save the Storefront after making the change.
What can Custom Scripts be used for?
Custom Scripts may be useful for third-party tools that provide an embeddable script and are not already available as a dedicated Dash to Cart integration.
Possible examples include:
- Customer experience tools
- Analytics tools
- Marketing measurement scripts
- Chat or support widgets
Compatibility depends on the third-party code itself.
Dash to Cart does not guarantee that every external script will work correctly.
Important security note
Only add code from services you trust.
Third-party scripts can affect storefront behaviour, tracking, performance and customer data. Review the provider’s instructions and privacy requirements before adding code.
If a Custom Script causes unexpected storefront behaviour, remove or disable it and test the storefront again.
Do I need coding knowledge?
You do not need to write code yourself if the third-party provider gives you a ready-to-use script.
However, Custom Scripts are an advanced feature. If you are unsure what a script does or where to place it, check with the service provider or a developer before installing it.
