Setting up a Custom Domain Name
When your StoreConnect® site is first setup it will have a domain name that will look something like
my-company.herokuapp.com which is most likely NOT something you want to start sending customers to.
In order to use your own domain name (like
www.my-company.com) there are several steps needed.
First off, you need to contact us at email@example.com and tell us the domain name you want to use (such as
www.my-company.com). Once you have told us this, we will respond back with a host name you need to point your domain name to. This will look something like:
Once you have this record, you will need to do two things:
1) Update the domain name field on your Store record within Salesforce to be the new domain name of your store, do not include https or anything else, so in this case changing it to
2) Log into your DNS host and create a CNAME record for www.my-company.com to point to the record given to you by support. It will look something like this:
Setting up your apex domain name
Many customers also want to use their apex domain name (also called a zone apex or naked domain. It’s basically the domain name without the
www. in the front. To set this up is a little more complex. To do this you need a DNS hosting provider that supports ALIAS, or ANAME records such as our friends at DNSimple do.
To set this up, you need a second record from support, so let them know you want to setup www.my-company.com as well as my-company.com. Support will give you two records to redirect, and you setup the apex ALIAS record as you did the CNAME record. Which will look something like this:
If you need any help with the above, please don’t hesitate to contact firstname.lastname@example.org.
Setting the Time To Live
Domain names take time to update once they have changed. This time is dictated by the Time To Live on the DNS record, you can see on the above two images that the TTL (Refresh Rate) is set to one hour. When you are switching over of your site into another site, it’s a good idea to set this to as low as possible so that any problems can be resolved rapidly.
It’s our recommendation that a few days before you go live, set your domain name TTL down to 5 minutes. Once everything has settled down it’s a good idea to then set this back up to a higher value.
Back to Documentation