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.
watch this video. if you still havent been able to verify your website.
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
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
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.
User | Count |
---|---|
25 | |
24 | |
24 | |
19 | |
13 |