call_messenger
line_messenger
facebook_messenger
whatsapp_messenger
Marketing

Custom Site Code

~3 min read1 articles

Add custom code to HTML head/body (for technical users only)

Accessing the page

From the left main menu, click 'Promotions', then select 'Custom Site Code'. Once inside, the top displays: Custom Site Code (For Technical Personnel Only). The page is divided into two input sections: 'Custom Head Code' and 'Custom Body Code'.

Enter the code you want to add to the <head> section (e.g., meta tags, CSS links, JS preload). The page warns: '<script> headers are not valid in Head, please place them in Body Code.'

Custom Body Code

Enter the code you want to add to the <body> section (e.g., third-party Chat tools, tracking scripts, cookie consent prompts). Saved settings take effect on the storefront immediately.

Suitable Use Cases

Use CaseExample
Cookie consent bannerThird-party consent tools such as Cookiebot or OneTrust
Third-party live chatChat widgets such as Tawk.to, Zendesk, Intercom
Heatmap analyticsHeatmap tools such as Hotjar or Microsoft Clarity
Custom CSS<style> blocks that override the store's default styles
Third-party tracking codeTracking platforms not provided in 'Site Tracking Tools'
Important notesThis feature is intended for technical personnel only. Incorrect HTML/JS code may cause display issues on the storefront. If you are unfamiliar with coding, please consult a technician first. If you have already connected GA, Pixel, etc. via 'Site Tracking Tools', do not duplicate them here. All <script> tags should be placed in Body Code.
Still have questions? Contact us directly via WhatsApp 39745020If merchants have any questions while building their online store, feel free to contact SHOPAGE's professional website consultants anytime. We are happy to help. Thank you!
Was this article helpful?Your feedback helps us improve the Feature Overview