FROM CACHE - en_header

how to upload html file to root directory of shopify

mitchsanchez
New Member
2 0 0

Hi,

 

I'm trying to verify my shopify so that facebook ads will work. I;ve done it via DNS and meta except i can't wait the 72 hours for that to register. Can anyone assist with doing it via html file? I've read all the tutorials that i can find but haven't been able to locate a walkthrough of how to do it.

 

Thanks

Replies 47 (47)
diego_ezfy
Shopify Partner
2791 526 714

Hello,

Technically speaking you can't use html within Shopify, we use .liquid which is, succinctly and in layman terms, a "HTML with superpowers". 

Anyhow, your goal seems a bit hazed: what exactly do you mean by verifying the Shopify account for Facebook ads?

Thank you

Regards,
Diego

mitchsanchez
New Member
2 0 0

Hey mate.

 

Apologies, i'm probably not using the right terminology. This is my first time setting up an online store.

 

FB wants me to set up a specific code on my website (options are via DNS, meta-tag or HTML) so that it can verify that the ads that i run on FB are sending people to the right website. I think i only need to do it via one of those three methods, however apparently DNS and meta take up to 72 hours to be read by FB. So i'm trying to figure out how to do it with HTML (or liquid) so that it's instant. I've downloaded my specific HTML file but the instructions say to copy it to the root file of my website. Which is where i'm stuck...

 

Hope that clarifies my question.

 

Mitch

Mari_Fforde
Tourist
7 0 1

Hiya

I am having the same problem. I have tried verifying my Facebook Business account by adding a line of code into the <head> section of my theme.liquid but Facebook tells me it cannot verify even though I can see their required bit of code in the source. My other option is to upload an .html file to the root directory which is not possible as they look for a .html file and I can only create a .liquid file. 

Have you come across this issue of not being able to verify elsewhere?

 

Many Thanks

 

Goliath Merchandising

KatieL11
Tourist
4 0 4

Same here! Any help would be great!

drakedev
Shopify Partner
622 133 184

Facebook provides 3 options, but only 2 of them are viable in Shopify.

  • HTML: Shopify doesn't provide access to the root domain and you cannot add any files there
  • DNS: It is possible by adding a TXT entry to your DNS record. That could take up to 72-hours, but usually it is much faster
  • Meta-Tag: this will allow to almost immediate verification, but you need to customize your theme code. That is a simple operation and can be done inside theme.liquid file inside layout folder of your theme
If my answer was helpful click Like to say thanks
If the problem is solved remember to click Accept Solution
Shopify/Shopify Plus custom development: You can hire me for simple and/or complex tasks.
Leikiniz808
New Member
1 0 4

I have tried multiple times to add facebook verification into <HEAD> section but it does not allow me to verify. Pls help. 

bhomegoods
New Member
1 0 2

i am getting this same problem. any help will be appreciated 

pinknpeachparty
New Member
1 0 1

hope someone can help us on this.. im having the same issue as well.

popejmp
New Member
1 0 1
Bluebasil
New Member
2 0 2

Did anyone get a resolution to this as I am having the same issue.

Sky228
Excursionist
32 0 6

I figured it out not sure if your website is live but if it is not you have to disable your password on the site. I found this Shopify link to help 

 

https://shopify.dev/tutorials/customize-theme-verify-domain-with-third-party-services

 

wangxin
New Member
1 0 0

Have you solved the problem of Facebook domain verification? How did you do it?

Sky228
Excursionist
32 0 6

is your website live?

corwingivens
New Member
2 0 4

Hi Popejmp,

To verify your domain in FB Business manager you need to follow this Verifying Your Domain. Once you complete the guide. locate your Meta Tag Verification Code in FB Business Manager business settings> brand safety> Meta Tag. The code will look like this: <meta name="facebook-domain-verification" content="your special identifier" />

Copy that code. 

Login to Shopify 

Online store > Themes > Edit Code > Theme.liquid

Locate the ending header tag </header>  in the theme.liquid file and paste the code right above.

Go back to FB Business Manager, business settings> brand safety> Meta Tag > Verify

 

Wajdy
New Member
2 0 1

i did as you said. i put the meta tag in the theme liquid under layout folder under header and it still didnt work. Then i tried putting it above the header but still didnt work. I confirmed it by looking at the page source and its there,

corwingivens
New Member
2 0 4

Please see attached for reference of code placement. Make sure you are using the snippet of code that FB provides you. Save and publish. Screen Shot 2021-01-29 at 9.48.10 AM.png

basoul2020
Tourist
3 0 4

Hello, has anyone else tried this? I did exactly as shown in the picture but it is still not working?

basoul2020
Tourist
3 0 4

Is there any other reason why this meta tag may not work? When I checked the html source, the meta tag is showing up from what facebook provided, so I don't know why it's still not verified?

Wajdy
New Member
2 0 1
I had to wait a couple hours