Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I need to regain control of my Google Analytics account (a marketing consultant set it up for a current client, and she doesn't have the login on hand). Google has instructed me to upload a .txt file to the root folder (i.e. public_html) of her Shopify store with specific language, which they can then reference as confirmation that we own the site. How can I accomplish this with Shopify?
There is not root in the common sense like if you were self hosting a website or CMS.
The service asking for verification should be able to provide a meta verification tag that you can add to your themes theme.liquid file in the <head> area of the code.
See https://help.shopify.com/en/themes/customization/store/verify-domain-with-third-party-services
A workaround is adding it to the themes assets files, then using {{ '.txt' | asset_url }} in your theme to get the url where the assets is available online.
Or the admin files and use the file_url filter instead
Then in the admin setup a navigation redirect to to point from the "mydomain.com/.txt" to the actual asset url, results will vary.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Hello, I have tried to verify my domain with the Zoho method using an HTML file but it doesn't work. I can't create a file and upload on the root of my WebHost, and Zoho doesn't have a meta tag to place directly in my theme.file. How do I get the DNS of my provider since I got my domain from Shopify? I want to try to use the CNAME method. Thank you.
Hi Paul, you are the best thank you very much for sharing this information, nice and simple. GRACIAS
watch this video. if you still havent been able to verify your website.
thank you ! I followed the tutorial. the DNS method worked for me (and it was easy) you just have to wait a few minutes after saving your new DNS settings
We had the same issue. We uploaded the file as an asset. Then we found the CDN where it was being loaded to. Then we went to navigation and created a URL Redirect to the file where it is in CDN. We will see if they approve that.
Hi Vallard,
Did they approve?
To clarify my previous answer for google analytics uploading a file is not the only method, just use the HTML Tag method (meta tag)
https://support.google.com/webmasters/answer/9008080?hl=en
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Here is what I did: I went to settings on my store. If you scroll down toward to the bottom on the left nav, you will see a link for "files" for your site. You will be able to upload ads.txt here. After you get confirmation that the file is there (it might take a few seconds), your site should be ready to run Google Adsense. It worked for me, I hope it helps.
I had the same issue trying to validate IndexNow in Ahrefs but I found an easy workaround and documented it all here:
https://elevateapps.io/indexnow-ahrefs-shopify/
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024