Adsterra direct link or ads link to my shopify home page?

I want to add the adsterra link to my shopify home page.

I have got the direct link and ads link from adsterra, but unable to add on shopify.

Hi @Hammadzahid

I notice that you’re trying to add an Adsterra direct link or ad link to your Shopify homepage, but you’re running into some trouble getting it to work. I totally get it—Shopify can be a bit restrictive when it comes to third-party ad networks, especially with how and where you can place ad scripts or links.

Understanding the Issue

Adsterra provides different types of ad formats, such as direct links, popunders, banners, and native ads. However, Shopify has security measures that may block certain scripts, particularly pop-ups and redirects, making it tricky to integrate Adsterra directly.

How to Add an Adsterra Direct Link to Shopify

If you’re simply adding a clickable Adsterra direct link to your homepage, here’s how you can do it:

1-Use a Button or Text Link:- Go to Shopify AdminOnline StoreThemes.

  • Click Customize on your active theme.
  • Select the section where you want to place the link (e.g., a text block in the homepage).
  • Add a button or hyperlink and paste the Adsterra direct link there.
  • Click Save & Publish.

2-Add the Adsterra Direct Link in Your Navigation Menu:- Go to Shopify AdminOnline StoreNavigation.

  • Click on the menu you want to edit (like Main Menu or Footer Menu).
  • Click Add Menu ItemEnter a Name (e.g., “Visit Our Partner”).
  • Paste the Adsterra direct link in the URL field.
  • Click Save Menu.

How to Add Adsterra Ad Code (For Banners or Popunders)

If you received an Adsterra ad script (HTML/JavaScript) instead of just a direct link, Shopify doesn’t allow you to directly paste JavaScript into the homepage unless you’re editing the theme code. Here’s how to do it:

  1. Go to Shopify AdminOnline StoreThemes.
  2. Click ActionsEdit Code.
  3. Open the theme.liquid file (found in the Layout folder).
  4. Find the tag and paste the Adsterra ad script right above it.
  5. Click Save.

Important: Shopify blocks certain scripts from running if they violate its policies. If Adsterra’s popunder ads are getting blocked, you may need to use banner ads instead, or check Shopify’s policy regarding external ad networks.

If you need help with anything else, feel free to reply and I’ll try my best to assist.

Best regards,
Daisy