Shopify / Shopify/shopify_app

Script Tags are not being registered

Open
#1,891 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
1.9k
Forks
739
Avg merge
21h 2m
Merged PRs (30d)
1

Description

Issue summary

Before opening this issue, I have:

  • Upgraded to the latest version of the package
    • shopify_app version: 22.3.2
    • Ruby version: 3.3.2
    • Operating system: MacOS / Linux
  • Set log_level: :debug in my configuration, if applicable
  • Found a reliable way to reproduce the problem that indicates it's a problem with the package
  • Looked for similar issues in this repository
  • Checked that this isn't an issue with a Shopify API

When a shop installs the app the scripttags specified in the initializer aren't registered.

Expected behavior

The scripttags listed in the initializer should be registered.

Actual behavior

They are not registered.

Steps to reproduce the problem

  1. Install an app with scripttags in a new shop.
  2. See that the script tag is not registered.

It looks like maybe something on the Shopify side broke this starting sometime in mid June.

I realize that script tags are deprecated, but all of the info I can find says that they should continue to work until August of 2025.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the initializer configuration that lists scripttags, then reproduce the issue by installing the app in a new shop using shopify_app 22.3.2. Verify whether registration is attempted and whether the failure is in the package or Shopify, with the script tag appearing after installation as the done condition.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.