Custom asset (block)

Load an external CSS or JavaScript file by URL.

Last updated About 4 hours ago

Available in: Custom code section

The Custom asset block is for third-party services that give you a full embed tag — analytics, chat widgets, font loaders, and similar.

Add the tag

Paste the complete asset tag into Code:

  • CSS — include the full <link rel="stylesheet" href="..."> tag.
  • JavaScript — include the full <script src="..."></script> tag.

Unlike Custom CSS and Custom JavaScript blocks, you provide the HTML tag yourself.

Other settings

Add the Custom code section to the template where the asset should load. Keep external scripts to trusted providers — they run on your storefront for every visitor who hits that template.